1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/x11/kdebase4/files/patch-konsole-konsole-konsole.cpp
2004-12-13 20:12:15 +00:00

31 lines
1.2 KiB
C++

--- 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);