[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdenetwork/kopete/plugins/translator
From: Igor Poboiko <igor.poboiko () gmail ! com>
Date: 2011-05-25 15:14:14
Message-ID: 20110525151414.16C1FAC852 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1233516 by poboiko:
Fix crash when user is trying to set language from contactlist menubar and no \
contacts are selected. Now action is disabled in this case.
BUG: 273070
BUG: 270797
M +4 -0 translatorplugin.cpp
--- trunk/KDE/kdenetwork/kopete/plugins/translator/translatorplugin.cpp \
#1233515:1233516 @@ -83,6 +83,10 @@
slotNewKMM( *it );
loadSettings();
+ // When started, contactlist hasn't any selected metacontacts, but this action is \
available from contactlist + // menubar, so we need to disable it.
+ // It is also important to do it after loadSettings because KSelectAction becomes \
enabled again after becoming non-empty + m_actionLanguage->setEnabled( \
!Kopete::ContactList::self()->selectedMetaContacts().isEmpty() ); }
TranslatorPlugin::~TranslatorPlugin()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic