[Kita-svn] [2367] initialize m_manager even when parent is 0 in order to avoid a crash

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 7月 5日 (日) 20:57:35 JST


Revision: 2367
          http://sourceforge.jp/projects/kita/svn/view?view=rev&revision=2367
Author:   nogu
Date:     2009-07-05 20:57:35 +0900 (Sun, 05 Jul 2009)

Log Message:
-----------
initialize m_manager even when parent is 0 in order to avoid a crash

Modified Paths:
--------------
    kita/branches/KITA-KDE4/kita/src/kitaui/tabwidgetbase.cpp

Modified: kita/branches/KITA-KDE4/kita/src/kitaui/tabwidgetbase.cpp
===================================================================
--- kita/branches/KITA-KDE4/kita/src/kitaui/tabwidgetbase.cpp	2009-07-05 07:05:20 UTC (rev 2366)
+++ kita/branches/KITA-KDE4/kita/src/kitaui/tabwidgetbase.cpp	2009-07-05 11:57:35 UTC (rev 2367)
@@ -52,6 +52,8 @@
         /* setup part manager */
         m_manager = new KParts::PartManager( parent, this );
         m_manager->addManagedTopLevelWidget( parent );
+    } else {
+        m_manager = 0;
     }
 }
 




Kita-svn メーリングリストの案内
Back to archive index