[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kspread/plugins/scripting/scripts
From:       Sebastian Sauer <mail () dipe ! org>
Date:       2007-11-13 23:06:43
Message-ID: 1194995203.613510.14402.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 736322 by sebsauer:

nah, ask for the filename if not known yet

 M  +3 -0      consoledocker.py  


--- trunk/koffice/kspread/plugins/scripting/scripts/consoledocker.py #736321:736322
@@ -95,6 +95,9 @@
                 except IOError, (errno, strerror):
                     Qt.QMessageBox.critical(self, "Error", "<qt>Failed to open file \
\"%s\"<br><br>%s</qt>" % (filename,strerror))  def saveClicked(self, *args):
+            if not self.filename:
+                self.saveAsClicked()
+                return
             try:
                 f = open(self.filename, "w")
                 f.write( "%s" % self.edit.toPlainText() )


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic