From 0cd36436725f308f58048f9d6ae02d94cfbfad8c Mon Sep 17 00:00:00 2001 From: iovar Date: Mon, 12 Nov 2007 09:19:56 +0000 Subject: rmdPrefsWidget.py: fixed jack ports re-insertion bug. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@428 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- qt-recordmydesktop/src/rmdPrefsWidget.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'qt-recordmydesktop/src') diff --git a/qt-recordmydesktop/src/rmdPrefsWidget.py b/qt-recordmydesktop/src/rmdPrefsWidget.py index 3fb4ac8..4251209 100644 --- a/qt-recordmydesktop/src/rmdPrefsWidget.py +++ b/qt-recordmydesktop/src/rmdPrefsWidget.py @@ -80,6 +80,7 @@ class prefsWidget(object): self.values[26]=str(self.extraOptsEntry.text().trimmed()) self.optionsOpen[0]=0 + def __getSelectedPorts__(self): iters_t=[] self.values[23]=[] @@ -292,6 +293,7 @@ class prefsWidget(object): stdout.close() stderr.close() self.jack_lsp_liststore.clear() + if ports!=[]: for i in ports: self.ports.append(i.replace('\n',"")) @@ -303,8 +305,6 @@ class prefsWidget(object): self.jack_lsp_liststore.setEnabled(False) self.jack_lsp_listSave.setEnabled(False) self.values[23]=[] - for i in self.values[23]: - self.jack_lsp_listSave.insertItem(-1,QtGui.QListWidgetItem(i)) for i in self.ports: self.jack_lsp_liststore.insertItem(-1,QtGui.QListWidgetItem(i)) @@ -342,6 +342,10 @@ class prefsWidget(object): self.__makeCons__() self.__runJackLSP__() self.__jack_enabled_check__() + for i in self.values[23]: + self.jack_lsp_listSave.insertItem(-1,QtGui.QListWidgetItem(i)) + + if self.values[24]==0: self.__tooltips__() self.window.show() -- cgit v1.2.3