aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2008-06-10 18:41:58 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2008-06-10 18:41:58 -0400
commit8b8b8d69354b9b42f29ea2430fd8d927288b0e30 (patch)
treef211cfa3ac9c3dcb338f0ba7232cc9e143ccfb05
parentRemoved forced debug from qmake file. (diff)
downloadzmusicplayer-8b8b8d69354b9b42f29ea2430fd8d927288b0e30.tar.xz
zmusicplayer-8b8b8d69354b9b42f29ea2430fd8d927288b0e30.zip
Set login dialog to disable instead of hide during loading.
-rwxr-xr-xplayerwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/playerwindow.cpp b/playerwindow.cpp
index e90727f..2f24a2d 100755
--- a/playerwindow.cpp
+++ b/playerwindow.cpp
@@ -110,7 +110,7 @@ Credentials* PlayerWindow::credentials()
}
void PlayerWindow::requestCollection()
{
- credentials()->hide();
+ credentials()->setDisabled(true);
statusBar()->addWidget(m_downloadProgress, 1);
statusBar()->show();
m_buffer = new QBuffer;
@@ -265,6 +265,7 @@ void PlayerWindow::requestFinished(int id, bool error)
m_sorter = new CollectionSorter(this, m_model);
m_treeView->setModel(m_sorter);
m_searchEdit->setDisabled(false);
+ credentials()->hide();
updateControls();
rowChange();
} else {
@@ -275,7 +276,7 @@ void PlayerWindow::requestFinished(int id, bool error)
void PlayerWindow::databaseDownloadFailed()
{
credentials()->showError(m_downloader->errorString());
- credentials()->show();
+ credentials()->setDisabled(false);
statusBar()->hide();
}
void PlayerWindow::startTrack()