Commit c53d06a8 authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Pali Rohár

Fix using setDefaultShortcut

parent a3f641a2
......@@ -461,7 +461,7 @@ void KopeteWindow::initActions()
d->actionShowAllOfflineEmpty = new KToggleAction ( QIcon::fromTheme( "view-user-offline-kopete" ), i18n ( "Show &All" ), this );
actionCollection()->addAction ( "settings_show_all_offline_empty", d->actionShowAllOfflineEmpty );
d->actionShowAllOfflineEmpty->setShortcut ( QKeySequence ( Qt::CTRL + Qt::Key_U ) );
actionCollection()->setDefaultShortcut(d->actionShowAllOfflineEmpty, QKeySequence ( Qt::CTRL + Qt::Key_U ) );
connect ( d->actionShowAllOfflineEmpty, SIGNAL (triggered(bool)), this, SLOT (slotToggleShowAllOfflineEmpty(bool)) );
d->actionShowOfflineUsers = new KToggleAction ( QIcon::fromTheme( "view-user-offline-kopete" ), i18n ( "Show Offline &Users" ), this );
......@@ -470,7 +470,7 @@ void KopeteWindow::initActions()
d->actionShowEmptyGroups = new KToggleAction ( QIcon::fromTheme( "folder-grey" ), i18n ( "Show Empty &Groups" ), this );
actionCollection()->addAction ( "settings_show_empty_groups", d->actionShowEmptyGroups );
d->actionShowEmptyGroups->setShortcut ( QKeySequence ( Qt::CTRL + Qt::Key_G ) );
actionCollection()->setDefaultShortcut(d->actionShowEmptyGroups, QKeySequence ( Qt::CTRL + Qt::Key_G ) );
connect ( d->actionShowEmptyGroups, SIGNAL (triggered(bool)), this, SLOT (slotToggleShowEmptyGroups()) );
/* The following are highly misleading together with the checkbox, consider removing them - ahartmetz
......
......@@ -101,7 +101,7 @@ int main( int argc, char *argv[] )
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KUniqueApplication::addCmdLineOptions();
KopeteApplication kopete;
KopeteApplication kopete;
return kopete.exec();
}
// vim: set noet ts=4 sts=4 sw=4:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment