Preferences sub menu does not have a sub menu of it's own. Wrong action was assigned.

This commit is contained in:
John Schember 2009-06-21 12:24:46 -04:00
parent 3d9232b738
commit 119afd3fc7

View File

@ -315,7 +315,7 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
SIGNAL('triggered(bool)'), self.convert_single)
self.convert_menu = cm
pm = QMenu()
pm.addAction(self.action_preferences)
pm.addAction(self.preferences_action)
pm.addAction(_('Run welcome wizard'))
self.connect(pm.actions()[1], SIGNAL('triggered(bool)'),
self.run_wizard)
@ -515,6 +515,7 @@ class Main(MainWindow, Ui_MainWindow, DeviceGUI):
pass
def system_tray_icon_activated(self, r):
print r
if r == QSystemTrayIcon.Trigger:
if self.isVisible():
self.hide_windows()