[Konversation-devel] [Bug 245179] [Usability] Tab context menu doesn't always have "Close Tab" as lowest entry

Eike Hein hein at kde.org
Tue Jul 20 10:56:46 CEST 2010


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


Eike Hein <hein at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Eike Hein <hein kde org>  2010-07-20 10:56:45 ---
commit 990ddadf57dc2d4d2422dfc1fb1ec1b576c0cf5b
Author: Eike Hein <hein at kde.org>
Date:   Tue Jul 20 10:56:29 2010 +0200

    Move "Rejoin Channel" action above "Close Tab".

    BUG:245179

diff --git a/ChangeLog b/ChangeLog
index c953701..eef26c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,10 @@ Changes since 1.3.1:
 * Added support for UnrealIRCd's 671 numeric.
 * Ignore network up/down notifications for localhost connections.
 * Fix WolframAlpha urls.
+* The "Rejoin Channel" context menu action, shown when a channel could not
+  be rejoined automatically on reconnect as well as after having been kicked
+  from a channel, will now appear above the "Close Tab" action rather than
+  at the end of the context menu, so "Close Tab" is always the last item.

 Changes from 1.3 to 1.3.1:
 Konversation 1.3.1 is a maintenance release that improves program behavior
diff --git a/src/viewer/viewcontainer.cpp b/src/viewer/viewcontainer.cpp
index 208956b..b74cd66 100644
--- a/src/viewer/viewcontainer.cpp
+++ b/src/viewer/viewcontainer.cpp
@@ -1745,6 +1745,7 @@ void ViewContainer::showViewContextMenu(QWidget* tab,
const QPoint& pos)
     ChatWindow* view = static_cast<ChatWindow*>(tab);
     KToggleAction* autoJoinAction =
qobject_cast<KToggleAction*>(actionCollection()->action("tab_autojoin"));
     QAction* rejoinAction = actionCollection()->action("rejoin_channel");
+    QAction* closeAction = actionCollection()->action("close_tab");

     QAction* renameAct = new QAction(this);
     renameAct->setText(i18n("&Rename Tab..."));
@@ -1765,7 +1766,7 @@ void ViewContainer::showViewContextMenu(QWidget* tab,
const QPoint& pos)
             Channel *channel = static_cast<Channel*>(view);
             if (channel->rejoinable() && rejoinAction)
             {
-                menu->addAction(rejoinAction);
+                menu->insertAction(closeAction, rejoinAction);
                 rejoinAction->setEnabled(true);
             }
         }

-- 
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