summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-11-17 22:29:18 +0100
committerMontel Laurent <[email protected]>2015-11-17 22:29:18 +0100
commitb0cc4f4aaa315f7677b074a38a0ea59d1d34fdbb (patch)
tree2cb89c06acaa744ef1c4c1edb090f0b74e791542
parentc694c17ac825a596e238d3d47495e9775eeab4d0 (diff)
Be sure that path/theme name is not empty
-rw-r--r--grantleeeditor/grantleethemeeditor/newthemedialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/grantleeeditor/grantleethemeeditor/newthemedialog.cpp b/grantleeeditor/grantleethemeeditor/newthemedialog.cpp
index 1fd6061..ed5f2a8 100644
--- a/grantleeeditor/grantleethemeeditor/newthemedialog.cpp
+++ b/grantleeeditor/grantleethemeeditor/newthemedialog.cpp
@@ -112,6 +112,7 @@ QString NewThemeDialog::directory() const
void NewThemeDialog::slotUpdateOkButton()
{
- d->mOkButton->setEnabled(!d->mUrlRequester->lineEdit()->text().isEmpty() && !d->mThemeName->text().isEmpty());
+ d->mOkButton->setEnabled(!d->mUrlRequester->lineEdit()->text().trimmed().isEmpty()
+ && !d->mThemeName->text().trimmed().isEmpty());
}