[rkward-cvs] SF.net SVN: rkward-code:[4554] trunk/rkward/rkward/windows/rkworkplace.cpp
tfry at users.sf.net
tfry at users.sf.net
Fri Feb 22 16:28:56 UTC 2013
Revision: 4554
http://sourceforge.net/p/rkward/code/4554
Author: tfry
Date: 2013-02-22 16:28:53 +0000 (Fri, 22 Feb 2013)
Log Message:
-----------
Fix (de-) activation of Pending Jobs and Debug Messages windows, which are not placed in the toolbars by default.
Modified Paths:
--------------
trunk/rkward/rkward/windows/rkworkplace.cpp
Modified: trunk/rkward/rkward/windows/rkworkplace.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkworkplace.cpp 2013-02-22 16:14:53 UTC (rev 4553)
+++ trunk/rkward/rkward/windows/rkworkplace.cpp 2013-02-22 16:28:53 UTC (rev 4554)
@@ -2,7 +2,7 @@
rkworkplace - description
-------------------
begin : Thu Sep 21 2006
- copyright : (C) 2006, 2007, 2009, 2010, 2011, 2012 by Thomas Friedrichsmeier
+ copyright : (C) 2006-2013 by Thomas Friedrichsmeier
email : tfry at users.sourceforge.net
***************************************************************************/
@@ -243,7 +243,9 @@
if (!windows.contains (window)) { // first time, we see this window?
addWindow (window, true);
- if (window->isAttached () && window->tool_window_bar) RKWardMainWindow::getMain ()->partManager ()->addPart (window->getPart ());
+ // In other cases, the part is added from addWindow()->attachWindow(). Probably, this could be simplified, but I don't dare
+ // touch it as long as it works. If parts are not added, part (de-)activation will not work, properly
+ if (window->isAttached () && !window->tool_window_bar) RKWardMainWindow::getMain ()->partManager ()->addPart (window->getPart ());
}
}
@@ -899,3 +901,4 @@
}
#include "rkworkplace.moc"
+
More information about the rkward-tracker
mailing list