r18321 by craig - #11575: Disable ok button until template item is selected
scribus-commit
scribus-commit at lists.scribus.net
Sat Jun 15 20:46:12 UTC 2013
Author: craig
Date: Sat Jun 15 20:46:12 2013
New Revision: 18321
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18321
Log:
#11575: Disable ok button until template item is selected
Modified:
trunk/Scribus/scribus/ui/nftdialog.cpp
Modified: trunk/Scribus/scribus/ui/nftdialog.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18321&path=/trunk/Scribus/scribus/ui/nftdialog.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/nftdialog.cpp (original)
+++ trunk/Scribus/scribus/ui/nftdialog.cpp Sat Jun 15 20:46:12 2013
@@ -21,6 +21,8 @@
setModal(true);
setWindowIcon(loadIcon("AppIcon.png"));
nftGui->setupSettings(lang);
+ buttonBox->button(QDialogButtonBox::Cancel)->setDefault(true);
+ buttonBox->button(QDialogButtonBox::Ok)->setDisabled(true);
connect(nftGui, SIGNAL(leaveOK()), this, SLOT(accept()));
connect(nftGui, SIGNAL(ButtonBoxEnable(bool)), this, SLOT(enableButtonBox(bool)));
}
More information about the scribus-commit
mailing list