summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-11-16 11:00:27 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-11-16 11:00:27 +0000
commit5c1b47dd1a331d9db004eb77d4b493864f57d7d1 (patch)
treefd73dd56e797a3158b6f05a9d12e62a7799b7e7c
parent29d9fadae9bfa1e3c517efa6fb59a07222035468 (diff)
downloadrockbox-5c1b47dd1a331d9db004eb77d4b493864f57d7d1.tar.gz
rockbox-5c1b47dd1a331d9db004eb77d4b493864f57d7d1.zip
Make autodetection show a busy cursor (hourglass) during detection to improve visual feedback.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19114 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--rbutil/rbutilqt/configure.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index 1589477cd7..c6a4a41455 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -507,6 +507,7 @@ void Config::autodetect()
507 // disable tree during detection as "working" feedback. 507 // disable tree during detection as "working" feedback.
508 // TODO: replace the tree view with a splash screen during this time. 508 // TODO: replace the tree view with a splash screen during this time.
509 ui.treeDevices->setEnabled(false); 509 ui.treeDevices->setEnabled(false);
510 this->setCursor(Qt::WaitCursor);
510 QCoreApplication::processEvents(); 511 QCoreApplication::processEvents();
511 512
512 if(detector.detect()) //let it detect 513 if(detector.detect()) //let it detect
@@ -538,6 +539,7 @@ void Config::autodetect()
538 } 539 }
539 } 540 }
540 } 541 }
542 this->unsetCursor();
541 543
542 if(!detector.errdev().isEmpty()) { 544 if(!detector.errdev().isEmpty()) {
543 QString text; 545 QString text;
@@ -579,6 +581,7 @@ void Config::autodetect()
579 } 581 }
580 else 582 else
581 { 583 {
584 this->unsetCursor();
582 QMessageBox::warning(this, tr("Autodetection"), 585 QMessageBox::warning(this, tr("Autodetection"),
583 tr("Could not detect a device.\n" 586 tr("Could not detect a device.\n"
584 "Select your device and Mountpoint manually."), 587 "Select your device and Mountpoint manually."),