[Digikam-devel] [Bug 179298] digikam scan for new images progress bar starts at 100%
Roman Fietze
rfkd at fietze-home.de
Thu Jan 1 20:13:19 GMT 2009
http://bugs.kde.org/show_bug.cgi?id=179298
--- Comment #2 from Roman Fietze <rfkd fietze-home de> 2009-01-01 21:13:19 ---
(In reply to comment #1)
> SVN commit 904217 by cgilles ...
Thanks for that pointer.
> i'm not sure if all will be fine for you
Not really. So I took the time and checked the sources. Instead of adding
reset() to DProgressDlg CTOR, changing ScanController::createProgressDialog
would probably a better solution. But because I'm new to digikam source code, I
cannot know if that would have any side effects. At least it seems to work
here.
Index: digikam/libs/dialogs/dprogressdlg.cpp
===================================================================
--- digikam/libs/dialogs/dprogressdlg.cpp (revision 904225)
+++ digikam/libs/dialogs/dprogressdlg.cpp (working copy)
@@ -128,8 +128,6 @@
connect(this, SIGNAL(cancelClicked()),
this, SLOT(slotCancel()));
-
- reset();
}
DProgressDlg::~DProgressDlg()
Index: digikam/digikam/scancontroller.cpp
===================================================================
--- digikam/digikam/scancontroller.cpp (revision 904225)
+++ digikam/digikam/scancontroller.cpp (working copy)
@@ -268,7 +268,7 @@
"are registered in a database.") );
d->progressDialog->setMaximum(1);
- d->progressDialog->setValue(1);
+ d->progressDialog->setValue(0);
connect(this, SIGNAL(incrementProgressDialog(int)),
d->progressDialog, SLOT(incrementMaximum(int)));
--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Digikam-devel
mailing list