make sure we hide the scan progress dialog even if there is no progress at all

(most likely the case when there are no devices found at all)

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119566
This commit is contained in:
Volker Lanz 2010-04-27 12:11:50 +00:00
parent f8e81095ea
commit 19ed42c34b
2 changed files with 2 additions and 3 deletions

3
TODO
View File

@ -17,9 +17,6 @@ Bugs to fix for 1.1:
* make sure the default file system can indeed be created
* Make sure progress dialog when scanning is hidden even if there are no devices
to scan.
* handling of illegal values in the size dialog spin boxes is not correct: we
need to make use of the validator, not just overwrite with the previous value
if the new one is not legal. i.e., we must constantly update the valid ranges

View File

@ -614,6 +614,8 @@ void MainWindow::on_m_DeviceScanner_finished()
{
#if !defined(NO_THREADED_DEVICE_SCANNER)
QReadLocker lockDevices(&operationStack().lock());
scanProgressDialog().setProgress(100);
#endif
if (!operationStack().previewDevices().isEmpty())