[Bug 250138] Kontact crashed when switching sidebar options (small to large icons, or, show icons only) (Qt 4.7) [QModelIndex, QSortFilterProxyModel::parent, QPersistentModelIndex::parent]
Till Adam
adam at kde.org
Mon Jan 17 11:59:55 GMT 2011
https://bugs.kde.org/show_bug.cgi?id=250138
--- Comment #57 from Till Adam <adam kde org> 2011-01-17 12:59:54 ---
commit f142cd203cecfc7195b5e5e115c4a66093454e16
branch 4.4
Author: Till Adam <adam at kde.org>
Date: Sun Nov 28 19:59:54 2010 +0000
Backport commit eb37385 from master to 4.4:
Don't crash when changing the icon or text size or visibility.
CCBUG: 250138
FIXED-IN: 4.4.10
diff --git a/kontact/src/iconsidepane.cpp b/kontact/src/iconsidepane.cpp
index 1b71290..c83b95b 100644
--- a/kontact/src/iconsidepane.cpp
+++ b/kontact/src/iconsidepane.cpp
@@ -90,9 +90,9 @@ class Model : public QStringListModel
{
}
- void emitLayoutChanged()
+ void emitReset()
{
- emit layoutChanged();
+ emit reset();
}
void setPluginList( const QList<KontactInterface::Plugin*> &list ) {
@@ -500,7 +500,7 @@ void Navigator::slotActionTriggered( bool checked )
Prefs::self()->setSidePaneShowIcons( mShowIcons );
Prefs::self()->setSidePaneShowText( mShowText );
- mModel->emitLayoutChanged();
+ mModel->emitReset();
QTimer::singleShot( 0, this, SLOT(updateNavigatorSize()) );
}
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list