[rkward-cvs] SF.net SVN: rkward:[3006] trunk/rkward/rkward
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Tue Sep 7 14:36:46 UTC 2010
Revision: 3006
http://rkward.svn.sourceforge.net/rkward/?rev=3006&view=rev
Author: tfry
Date: 2010-09-07 14:36:46 +0000 (Tue, 07 Sep 2010)
Log Message:
-----------
Clear selection in console when switching to it
Modified Paths:
--------------
trunk/rkward/rkward/rkconsole.cpp
trunk/rkward/rkward/rkconsole.h
Modified: trunk/rkward/rkward/rkconsole.cpp
===================================================================
--- trunk/rkward/rkward/rkconsole.cpp 2010-09-07 14:31:31 UTC (rev 3005)
+++ trunk/rkward/rkward/rkconsole.cpp 2010-09-07 14:36:46 UTC (rev 3006)
@@ -927,6 +927,14 @@
copy_action->setEnabled (true);
}
+void RKConsole::activate (bool with_focus) {
+ RK_TRACE (APP);
+
+ // see http://www.mail-archive.com/rkward-devel@lists.sourceforge.net/msg00933.html
+ if (with_focus) view->removeSelection ();
+ RKMDIWindow::activate (with_focus);
+}
+
///################### END RKConsole ########################
///################### BEGIN RKConsolePart ####################
Modified: trunk/rkward/rkward/rkconsole.h
===================================================================
--- trunk/rkward/rkward/rkconsole.h 2010-09-07 14:31:31 UTC (rev 3005)
+++ trunk/rkward/rkward/rkconsole.h 2010-09-07 14:36:46 UTC (rev 3006)
@@ -74,6 +74,9 @@
static void pipeUserCommand (RCommand *command);
/** Overload for the above function: Use this, if you just need to run a string with no specials */
static void pipeUserCommand (const QString &command);
+
+/** reimplemnented from RKMDIWindow to clear selection when gaining focus */
+ void activate (bool with_focus=true);
protected:
/** Handle keystrokes before they reach the kate-part. Return TRUE if we want the kate-part to ignore it
\param e the QKeyEvent */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list