[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/utils/filelight
From:       Martin Tobias Holmedahl Sandsmark <sandsmark () samfundet ! no>
Date:       2010-05-26 22:24:44
Message-ID: 20100526222444.B14A7AC8C0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1130973 by sandsmark:

allow reloading of summary screen, by deleting and recreating summary widget.

BUG: 148732



 U             CMakeLists.txt  
 M  +1 -1      misc/filelightui.rc  
 M  +7 -0      src/part/part.cpp  


--- trunk/playground/utils/filelight/misc/filelightui.rc #1130972:1130973
@@ -79,6 +79,7 @@
     <Action name="scan_home"/>
     <Action name="scan_root"/>
     <Action name="scan_recent"/>
+    <Action name="scan_rescan"/>
     <Action name="clear_location"/>
     <Action name="location_bar"/>
     <Action name="go"/>
@@ -86,7 +87,6 @@
   </enable>
   <disable>
     <Action name="scan_stop"/>
-    <Action name="scan_rescan"/>
     <Action name="go_up"/>
     <Action name="view_zoom_in"/>
     <Action name="view_zoom_out"/>
--- trunk/playground/utils/filelight/src/part/part.cpp #1130972:1130973
@@ -260,6 +260,13 @@
 void
 Part::rescan()
 {
+    if (m_summary && !m_summary->isHidden()) {
+        delete m_summary;
+        m_summary = 0;
+        showSummary();
+        return;
+    }
+
     //FIXME we have to empty the cache because otherwise rescan picks up the old tree..
     m_manager->emptyCache(); //causes canvas to invalidate
     m_map->hide();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic