- fixed: actions did not fire anymore

Tue, 03 Mar 2015 22:07:36 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Tue, 03 Mar 2015 22:07:36 +0200
changeset 934
be8128aff739
parent 933
f4c80d92e71e
child 935
8d98ee0dc917
child 940
edc716c1d8e1

- fixed: actions did not fire anymore

src/mainWindow.cpp file | annotate | diff | comparison | revisions
--- a/src/mainWindow.cpp	Tue Mar 03 21:54:57 2015 +0200
+++ b/src/mainWindow.cpp	Tue Mar 03 22:07:36 2015 +0200
@@ -145,10 +145,7 @@
 //
 void MainWindow::actionTriggered()
 {
-	// Get the name of the sender object and use it to compose the slot name,
-	// then invoke this slot to call the action.
-	QMetaObject::invokeMethod (this,
-		qPrintable (format ("slot_%1", sender()->objectName())), Qt::DirectConnection);
+	QMetaObject::invokeMethod (this, qPrintable (sender()->objectName()), Qt::DirectConnection);
 	endAction();
 }
 

mercurial