[Digikam-devel] [Bug 109271] cant "Save As" picture opened from http url in Konqueror

Tom Albers tomalbers at kde.nl
Sun Aug 21 22:44:58 BST 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=109271         
tomalbers kde nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From tomalbers kde nl  2005-08-21 23:44 -------
SVN commit 451822 by toma:

The state of the menu's was checked while loading the images, but that is not sufficient. At the end of the constructor we now check if all menu items are active which should be active.
BUGS: 109271


 M  +17 -3     showfoto.cpp  
 M  +1 -0      showfoto.h  


--- trunk/extragear/graphics/digikam/showfoto/showfoto.cpp #451821:451822
 @ -188,8 +188,14  @
     if ( urlList.isEmpty() )
     {
        toggleActions(false);
+       toggleNavigation(0);
        QTimer::singleShot(0, this, SLOT(slotOpenFile()));
     }
+    else
+    {
+       toggleNavigation(1);
+       toggleActions(true);
+    }
 }
 
 ShowFoto::~ShowFoto()
 @ -883,19 +889,26  @
 
     setCaption(i18n("Showfoto - %1").arg(m_currentItem->url().directory()));
 
-    if (m_bar->countItems() == 1) {
+    toggleNavigation( index );
+}
+
+
+void ShowFoto::toggleNavigation(const int index)
+{
+    if ( m_bar->countItems() == 0 || m_bar->countItems() == 1 ) {
         m_backAction->setEnabled(false);
         m_forwardAction->setEnabled(false);
         m_firstAction->setEnabled(false);
         m_lastAction->setEnabled(false);
     }
-    else {
+    else 
+    {
         m_backAction->setEnabled(true);
         m_forwardAction->setEnabled(true);
         m_firstAction->setEnabled(true);
         m_lastAction->setEnabled(true);
     }
-
+    
     if (index == 1) {
         m_backAction->setEnabled(false);
         m_firstAction->setEnabled(false);
 @ -907,6 +920,7  @
     }
 }
 
+
 void ShowFoto::slotAutoFit()
 {
     bool checked = m_zoomFitAction->isChecked();
--- trunk/extragear/graphics/digikam/showfoto/showfoto.h #451821:451822
 @ -115,6 +115,7  @
     bool promptUserSave();
     bool save();
     void toggleActions(bool val);
+    void toggleNavigation(const int index);
     void loadPlugins();
     void unLoadPlugins();



More information about the Digikam-devel mailing list