r21521 by jghali - #14376: autoquote script freeze application

scribus-commit scribus-commit at lists.scribus.net
Sat Nov 19 12:28:39 UTC 2016


Author: jghali
Date: Sat Nov 19 12:28:39 2016
New Revision: 21521

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21521
Log:
#14376: autoquote script freeze application

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote.py
    trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote2.py

Modified: trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote.py
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21521&path=/trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote.py
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote.py	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote.py	Sat Nov 19 12:28:39 2016
@@ -90,7 +90,7 @@
         sys.exit(2)
         
 else:
-    scribus.messageBox('Usage Error', 'You need a Document open', icon=0, button1=1)
+    scribus.messageBox('Usage Error', 'You need a Document open', scribus.ICON_WARNING, scribus.BUTTON_OK)
     sys.exit(2)
 
 if scribus.selectionCount() == 0:

Modified: trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote2.py
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21521&path=/trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote2.py
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote2.py	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scripts/Autoquote2.py	Sat Nov 19 12:28:39 2016
@@ -127,7 +127,7 @@
     lead_single = u"\u00bb"
     follow_single = u"\u00ab"
 else:
-    scribus.messageBox('Language Error', 'You need to choose an available language', icon=0, button1=1)
+    scribus.messageBox('Language Error', 'You need to choose an available language', scribus.ICON_WARNING, scribus.BUTTON_OK)
     sys.exit(2)
 
 if scribus.selectionCount() == 0:




More information about the scribus-commit mailing list