[rkward/frameworks] rkward/windows: Disconnect any remaining windows before exit

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Thu Nov 26 09:50:56 UTC 2015


Git commit 91a73d336d51a5f906ae6397666889dbc871999f by Thomas Friedrichsmeier.
Committed on 26/11/2015 at 09:31.
Pushed by tfry into branch 'frameworks'.

Disconnect any remaining windows before exit

M  +3    -0    rkward/windows/rkworkplace.cpp

http://commits.kde.org/rkward/91a73d336d51a5f906ae6397666889dbc871999f

diff --git a/rkward/windows/rkworkplace.cpp b/rkward/windows/rkworkplace.cpp
index 517486a..fc7cff9 100644
--- a/rkward/windows/rkworkplace.cpp
+++ b/rkward/windows/rkworkplace.cpp
@@ -113,6 +113,9 @@ RKWorkplace::~RKWorkplace () {
 
 	delete _workspace_config;
 //	closeAll ();	// not needed, as the windows will autodelete themselves using QObject mechanism. Of course, closeAll () should be called *before* quitting.
+	for (int i = 0; i < windows.size (); ++i) {
+		disconnect (windows[i], 0, this, 0);
+	}
 }
 
 QString workspaceConfigFileName (const QUrl &url) {



More information about the rkward-tracker mailing list