CVS commit by cullmann: fix session restore prob, bug #76893 M +5 -0 kwritemain.cpp 1.93.2.2 M +2 -0 kwritemain.h 1.26.2.1 --- kdebase/kate/app/kwritemain.cpp #1.93.2.1:1.93.2.2 @@ -645,4 +645,9 @@ extern "C" int kdemain(int argc, char ** } + // no window there, uh, ohh, for example borked session config !!! + // create at least one !! + if (KWrite::noWindows()) + new KWrite(); + return a.exec (); } --- kdebase/kate/app/kwritemain.h #1.26:1.26.2.1 @@ -48,4 +48,6 @@ class KWrite : public KParts::MainWindow KTextEditor::View *view() const { return m_view; } + static bool noWindows () { return winList.isEmpty(); } + private: void setupActions();