Summary: | konsole crush and causes sig 11 when clicking/right clicking anywhere inside after deleting all saved sessions, including predefined sessions | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Crocodilu <daniel.cristolovean> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Crocodilu
2006-02-09 11:34:58 UTC
SVN commit 540103 by hindenburg: Fix crash when user deletes all the sessions. BUG: 121640 M +8 -0 konsole.cpp --- branches/KDE/3.5/kdebase/konsole/konsole/konsole.cpp #540102:540103 @@ -3413,6 +3413,14 @@ void Konsole::createSessionMenus() { + if (no2command.isEmpty()) { // All sessions have been deleted + m_session->insertItem(SmallIconSet("window_new"), + i18n("New &Window"), SESSION_NEW_WINDOW_ID); + m_tabbarSessionsCommands->insertItem(SmallIconSet("window_new"), + i18n("New &Window"), SESSION_NEW_WINDOW_ID); + return; + } + KSimpleConfig *cfg = no2command[SESSION_NEW_SHELL_ID]; QString txt = cfg->readEntry("Name"); QString icon = cfg->readEntry("Icon", "konsole"); |