From: <tit...@us...> - 2007-06-29 04:27:23
|
Revision: 6018 http://svn.sourceforge.net/translate/?rev=6018&view=rev Author: titvirak Date: 2007-06-28 21:27:25 -0700 (Thu, 28 Jun 2007) Log Message: ----------- Fix syntax error (editor not self). Modified Paths: -------------- src/trunk/pootling/modules/MainEditor.py Modified: src/trunk/pootling/modules/MainEditor.py =================================================================== --- src/trunk/pootling/modules/MainEditor.py 2007-06-29 04:11:18 UTC (rev 6017) +++ src/trunk/pootling/modules/MainEditor.py 2007-06-29 04:27:25 UTC (rev 6018) @@ -611,6 +611,8 @@ Enable/disable buttons according to availability of filename. @param filename: filename to set title and determine enable/disable. """ + self.ui.actionSave.setEnabled(False) + value = bool(filename) self.setTitle(filename) self.ui.action_Close.setEnabled(value) @@ -680,9 +682,11 @@ editor = MainWindow() editor.show() + print os.path.abspath(inputFile) + if (inputFile): if os.path.exists(inputFile): - self.openFile(inputFile) + editor.openFile(inputFile) else: msg = editor.tr("%1 file name doesn't exist").arg(inputFile) QtGui.QMessageBox.warning(editor, editor.tr("File not found") , msg) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |