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

List:       kde-commits
Subject:    branches/KDE/4.4/kdebase/apps/konsole/src
From:       Kurt Hindenburg <kurt.hindenburg () gmail ! com>
Date:       2010-04-17 3:34:57
Message-ID: 20100417033457.35CD7AC89B () svn ! kde ! org
[Download RAW message or body]

SVN commit 1115610 by hindenburg:

Use the default profile if the session management's Konsole file is unusable (corrupt/missing/etc).

BUG: 203621


 M  +9 -0      ViewManager.cpp  


--- branches/KDE/4.4/kdebase/apps/konsole/src/ViewManager.cpp #1115609:1115610
@@ -955,6 +955,15 @@
         _viewSplitter->activeContainer()->setActiveView(display);
         display->setFocus(Qt::OtherFocusReason);
     }
+
+    if (ids.isEmpty()) // Session file is unusable, start default Profile
+    {
+        Profile::Ptr profile = SessionManager::instance()->defaultProfile();
+        Session* session = SessionManager::instance()->createSession(profile);
+        createView(session);
+        if (!session->isRunning())
+            session->run();
+    }
 }
 
 uint qHash(QPointer<TerminalDisplay> display)
[prev in list] [next in list] [prev in thread] [next in thread] 

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