[Konversation-devel] [Bug 103394] Ability to configure "Focus server tab" with ALT+<num> with the "natural" order of tabs

ismail donmez ( cartman ) ismail at kde.org
Thu Jul 1 16:02:47 CEST 2010


https://bugs.kde.org/show_bug.cgi?id=103394





--- Comment #11 from ismail ( cartman ) donmez <ismail kde org>  2010-07-01 16:02:44 ---
commit 0521aae6aa00d986cd0df4bec8ae749b9e9be910
Author: İsmail Dönmez <ismail at kde.org>
Date:   Fri Apr 8 09:20:43 2005 +0000

    Start ALT+<int> shortcuts from ALT+1 as one expect from it
    BUG:103394

    svn path=/trunk/kdeextragear-2/konversation/; revision=403985

diff --git a/konversation/konversationmainwindow.cpp
b/konversation/konversationmainwindow.cpp
index a309f60..a7364ca 100644
--- a/konversation/konversationmainwindow.cpp
+++ b/konversation/konversationmainwindow.cpp
@@ -163,10 +163,10 @@ KonversationMainWindow::KonversationMainWindow() :
KMainWindow(0,"main_window",
   QSignalMapper* tabSelectionMapper = new QSignalMapper(this);
   connect(tabSelectionMapper, SIGNAL(mapped(int)), this, SLOT(goToTab(int)));

-  for(uint i = 0; i < 10; ++i) {
+  for(uint i = 1; i <= 10; ++i) {
     KAction* tabSelectionAction = new KAction(i18n("Go to Tab %1").arg(i), 0,
KShortcut(QString("Alt+%1").arg(i)),
       tabSelectionMapper, SLOT(map()), actionCollection(),
QString("go_to_tab_%1").arg(i).local8Bit());
-    tabSelectionMapper->setMapping( tabSelectionAction, i);
+    tabSelectionMapper->setMapping( tabSelectionAction, i-1);
   }

   action = new KAction(i18n("&Clear
Window"),0,KShortcut("Ctrl+L"),this,SLOT(clearWindow()),actionCollection(),"clear_window");

-- 
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 Konversation-devel mailing list