[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/pim/mailody/src
From: Tom Albers <toma () kde ! org>
Date: 2009-10-16 17:06:07
Message-ID: 1255712767.357629.22063.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1036138 by toma:
Dont crash on startup.
M +7 -6 mainwindow.cpp
--- trunk/extragear/pim/mailody/src/mainwindow.cpp #1036137:1036138
@@ -126,12 +126,6 @@
Control::widgetNeedsAkonadi( this );
- // create the docks...
- createDocks();
-
- // create the actions...
- createActions();
-
// setup the header and the viewer
m_headerAndViewer = new QSplitter( this );
m_headerAndViewer->setOrientation( Qt::Vertical );
@@ -157,6 +151,12 @@
gbox->addWidget( m_headerWidget, 1, 0 );
m_right = new KVBox( m_headerAndViewer );
+ // create the docks...
+ createDocks();
+
+ // create the actions...
+ createActions();
+
// Tab Widget
m_tabWidget = new TabWidget( m_right );
connect( m_tabWidget, SIGNAL( clicked() ), SLOT( slotNewTab() ) );
@@ -312,6 +312,7 @@
m_favoritesView->setModel( favoritesModel );
StandardActionManager* stdActionManager = new StandardActionManager( m_actionCollection, this );
+ stdActionManager->setItemSelectionModel( m_headerWidget->view()->selectionModel() );
stdActionManager->setCollectionSelectionModel( m_collectionView->selectionModel() );
stdActionManager->setFavoriteCollectionsModel( favoritesModel );
stdActionManager->setFavoriteSelectionModel( m_favoritesView->selectionModel() );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic