[Konsole-devel] [Bug 88428] When only one tab on konsole, disable the "close tab" button, as in Konqueror

Stephan Binner binner at kde.org
Tue Sep 14 19:02:34 UTC 2004


------- 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=88428        
binner kde org changed:

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



------- Additional Comments From binner kde org  2004-09-14 21:02 -------
CVS commit by binner: 

Bug 88428: When only one tab on konsole, disable the "close tab" button, as in Konqueror (wishlist)
CCMAIL: 88428-done bugs kde org


  M +3 -0      konsole.cpp   1.472.2.3


--- kdebase/konsole/konsole/konsole.cpp  #1.472.2.2:1.472.2.3
 @ -886,4 +886,5  @ void Konsole::makeTabWidget()
     m_removeSessionButton->setIconSet( SmallIcon( "tab_remove" ) );
     m_removeSessionButton->adjustSize();
+    m_removeSessionButton->setEnabled(false);
     connect(m_removeSessionButton, SIGNAL(clicked()), SLOT(confirmCloseCurrentSession()));
     tabwidget->setCornerWidget( m_removeSessionButton, BottomRight );
 @ -2397,4 +2398,5  @ void Konsole::addSession(TESession* s)
       enableMasterModeConnections();
     }
+    m_removeSessionButton->setEnabled(tabwidget->count()>1);
 }
 
 @ -2838,4 +2840,5  @ void Konsole::doneSession(TESession* s)
     }
     delete s->widget();
+    m_removeSessionButton->setEnabled(tabwidget->count()>1);
   }
   session2action.remove(s);



More information about the konsole-devel mailing list