Load streams when page selected.

This commit is contained in:
craig
2011-12-10 12:37:16 +00:00
committed by craig
parent 64e84ef5be
commit 2ca3bf92ba
2 changed files with 7 additions and 2 deletions

View File

@@ -1412,7 +1412,8 @@ void MainWindow::trayIconClicked(QSystemTrayIcon::ActivationReason reason)
enum Tabs
{
TAB_LIBRARY = 0x01,
TAB_FOLDERS = 0x02
TAB_FOLDERS = 0x02,
TAB_STREAMS = 0x04
};
void MainWindow::currentTabChanged(int index)
@@ -1432,7 +1433,12 @@ void MainWindow::currentTabChanged(int index)
}
break;
case PAGE_PLAYLISTS:
break;
case PAGE_STREAMS:
if (!(loaded&TAB_STREAMS)) {
loaded|=TAB_STREAMS;
streamsPage->refresh();
}
break;
case PAGE_LYRICS:
if (lyricsNeedUpdating) {

View File

@@ -53,7 +53,6 @@ StreamsModel::StreamsModel()
: QAbstractListModel(0)
, timer(0)
{
reload();
}
StreamsModel::~StreamsModel()