Summary: | wish list rescan option | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Ted Hansen <tedhansen> |
Component: | Database-Scan | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | caulier.gilles |
Priority: | NOR | ||
Version: | 0.8.0 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 0.9.0 | |
Sentry Crash Report: |
Description
Ted Hansen
2005-12-27 20:04:02 UTC
Have you got any idea in which situation the pictures dont show up? Not really. There didn't seem to be anything consistent. It happened when I downloaded photos from several days with the 'automatically create subfolders' on so there were several subfolders created. The photos appeared in some but not all subfolders. Closed digikam & reopened & all the photos did appear. Then I tried the same procedure again and the photos did appear immediately as they should. I don't know what was different & of course it never recorded as an error so there was no backtrace. SVN commit 492366 by toma: Add a rescan possibility to the menu, so you dont have to close and start digiKam again when the app does not detect changes in the album library path (which it should detect in all cases by the way, so if you spot a logic, please open a new bugreport) Also makes it possible to turn off scan at start in the settings and do it manually when needed, this will gain a bit in the startup time of digiKam. BUG: 119073 M +11 -0 digikamapp.cpp M +1 -0 digikamapp.h M +4 -1 digikamui.rc --- trunk/extragear/graphics/digikam/digikam/digikamapp.cpp #492365:492366 @@ -72,6 +72,7 @@ #include "digikamapp.h" #include "splashscreen.h" #include "thumbnailsize.h" +#include "scanlib.h" DigikamApp::DigikamApp(bool detectCamera) : KMainWindow( 0, "Digikam" ) @@ -549,6 +550,10 @@ findAction->setText(i18n("Advanced Search...")); findAction->setShortcut("Ctrl+Alt+F"); + new KAction(i18n("Scan for New Images"), "reload_page", 0, + this, SLOT(slotDatabaseRescan()), actionCollection(), + "database_rescan"); + // ----------------------------------------------------------- // Provides a menu entry that allows showing/hiding the toolbar(s) @@ -1152,6 +1157,12 @@ } } +void DigikamApp::slotDatabaseRescan() +{ + ScanLib sLib; + sLib.startScan(); +} + DigikamApp* DigikamApp::m_instance = 0; #include "digikamapp.moc" --- trunk/extragear/graphics/digikam/digikam/digikamapp.h #492365:492366 @@ -207,6 +207,7 @@ void slotEditKeys(); void slotConfToolbars(); void slotToggleFullScreen(); + void slotDatabaseRescan(); void slotChangeTheme(const QString& theme); }; --- trunk/extragear/graphics/digikam/digikam/digikamui.rc #492365:492366 @@ -1,5 +1,5 @@ <!DOCTYPE kpartgui SYSTEM "kpartgui.dtd"> -<kpartgui version="6" name="digikam" > +<kpartgui version="7" name="digikam" > <MenuBar> @@ -65,6 +65,9 @@ <Menu name="Tools"><text>&Tools</text> <Action name="search_quick" /> <Action name="search_advanced" /> + <Separator/> + <Action name="database_rescan" /> + <Separator/> <ActionList name="album_actions"/> <Separator/> <Action name="gamma_adjustment" /> SVN commit 492369 by toma: Backport of SVN commit 492366 by toma: Add a rescan possibility to the menu, so you dont have to close and start digiKam again when the app does not detect changes in the album library path (which it should detect in all cases by the way, so if you spot a logic, please open a new bugreport) Also makes it possible to turn off scan at start in the settings and do it manually when needed, this will gain a bit in the startup time of digiKam. CCBUG: 119073 M +11 -0 digikamapp.cpp M +1 -0 digikamapp.h M +4 -1 digikamui.rc --- branches/stable/extragear/graphics/digikam/digikam/digikamapp.cpp #492368:492369 @@ -74,6 +74,7 @@ #include "digikamapp.h" #include "splashscreen.h" #include "thumbnailsize.h" +#include "scanlib.h" DigikamApp::DigikamApp(bool detectCamera) : KMainWindow( 0, "Digikam" ) @@ -571,6 +572,10 @@ findAction->setText(i18n("Advanced Search...")); findAction->setShortcut("Ctrl+Alt+F"); + new KAction(i18n("Scan for New Images"), "reload_page", 0, + this, SLOT(slotDatabaseRescan()), actionCollection(), + "database_rescan"); + // ----------------------------------------------------------- // Provides a menu entry that allows showing/hiding the toolbar(s) @@ -1179,6 +1184,12 @@ } } +void DigikamApp::slotDatabaseRescan() +{ + ScanLib sLib; + sLib.startScan(); +} + DigikamApp* DigikamApp::m_instance = 0; #include "digikamapp.moc" --- branches/stable/extragear/graphics/digikam/digikam/digikamapp.h #492368:492369 @@ -212,6 +212,7 @@ void slotEditKeys(); void slotConfToolbars(); void slotToggleFullScreen(); + void slotDatabaseRescan(); void slotChangeTheme(const QString& theme); }; --- branches/stable/extragear/graphics/digikam/digikam/digikamui.rc #492368:492369 @@ -1,5 +1,5 @@ <!DOCTYPE kpartgui SYSTEM "kpartgui.dtd"> -<kpartgui version="6" name="digikam" > +<kpartgui version="7" name="digikam" > <MenuBar> @@ -67,6 +67,9 @@ <Menu name="Tools"><text>&Tools</text> <Action name="search_quick" /> <Action name="search_advanced" /> + <Separator/> + <Action name="database_rescan" /> + <Separator/> <ActionList name="album_actions"/> <Separator/> <Action name="gamma_adjustment" /> > Add a rescan possibility to the menu, so you dont have to close and
> start digiKam again when the app does not detect changes in the album
> library path (which it should detect in all cases by the way, so if you
> spot a logic, please open a new bugreport)
Auto detection will not work(?) with FAM daemon not working. I turned
it off and know several people who did it due to fact FAM is real
resource hog. Usually FAM runs as "silent" dependency of KDE but can be
turned off by distro or user who wants to increase performance of
computer (losing some niceties of KDE).
Just some explanation.
|