r18322 by craig - #11575: Disable ok button until template item is selected

scribus-commit scribus-commit at lists.scribus.net
Sat Jun 15 20:46:21 UTC 2013


Author: craig
Date: Sat Jun 15 20:46:21 2013
New Revision: 18322

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18322
Log:
#11575: Disable ok button until template item is selected

Modified:
    branches/Version14x/Scribus/scribus/nftdialog.cpp

Modified: branches/Version14x/Scribus/scribus/nftdialog.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18322&path=/branches/Version14x/Scribus/scribus/nftdialog.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/nftdialog.cpp (original)
+++ branches/Version14x/Scribus/scribus/nftdialog.cpp Sat Jun 15 20:46:21 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