blob: 553c411983a7b87a988a14e2511929477339820f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- konsole/konsole/konsole.cpp 16 Nov 2004 16:46:00 -0000 1.472.2.6
+++ konsole/konsole/konsole.cpp 1 Dec 2004 17:05:30 -0000 1.472.2.7
@@ -2381,11 +2381,11 @@ void Konsole::addSession(TESession* s)
createSessionTab(te, SmallIconSet(s->IconName()), newTitle);
setSchema(s->schemaNo());
tabwidget->setCurrentPage(tabwidget->count()-1);
- disableMasterModeConnections(); // no duplicate connections, remove old
- enableMasterModeConnections();
- }
- if( tabwidget )
- m_removeSessionButton->setEnabled(tabwidget->count()>1);
+ disableMasterModeConnections(); // no duplicate connections, remove old
+ enableMasterModeConnections();
+ if(m_removeSessionButton)
+ m_removeSessionButton->setEnabled(tabwidget->count()>1);
+ }
}
QString Konsole::currentSession()
@@ -2827,8 +2827,8 @@ void Konsole::doneSession(TESession* s)
rootxpms.remove(s->widget());
}
delete s->widget();
- if( tabwidget )
- m_removeSessionButton->setEnabled(tabwidget->count()>1);
+ if (m_removeSessionButton)
+ m_removeSessionButton->setEnabled(tabwidget->count()>1);
}
session2action.remove(s);
action2session.remove(ra);
|