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

List:       kde-commits
Subject:    KDE/kdegraphics/okular/ui
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2010-10-13 23:40:20
Message-ID: 20101013234020.332D6AC895 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1185629 by aacid:

forwardport r1185627 okular/branches/KDE/4.5/kdegraphics/okular/ui/sidebar.cpp: make \
sure the list is shown all the times we show the sidecontainer forwardport r1185628 \
okular/branches/KDE/4.5/kdegraphics/okular/ui/sidebar.cpp: no need to look for a new \
current item if the sidebar is not even shown


 M  +2 -1      sidebar.cpp  


--- trunk/KDE/kdegraphics/okular/ui/sidebar.cpp #1185628:1185629
@@ -550,7 +550,7 @@
     }
     d->pages.at( index )->setFlags( f );
 
-    if ( !enabled && index == currentIndex() )
+    if ( !enabled && index == currentIndex() && isSidebarVisible() )
         // find an enabled item, and select that one
         for ( int i = 0; i < d->pages.count(); ++i )
             if ( d->pages.at(i)->flags() & Qt::ItemIsEnabled )
@@ -629,6 +629,7 @@
         else
         {
             d->sideContainer->show();
+            d->list->show();
         }
     }
     else


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

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