r18684 by jghali - #9944 (partial fix): renaming an existing style scrambles the styles hierarchy
scribus-commit
scribus-commit at lists.scribus.net
Mon Jan 6 20:48:58 UTC 2014
Author: jghali
Date: Mon Jan 6 20:48:58 2014
New Revision: 18684
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18684
Log:
#9944 (partial fix): renaming an existing style scrambles the styles hierarchy
Modified:
branches/Version14x/Scribus/scribus/stylemanager.cpp
Modified: branches/Version14x/Scribus/scribus/stylemanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18684&path=/branches/Version14x/Scribus/scribus/stylemanager.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/stylemanager.cpp (original)
+++ branches/Version14x/Scribus/scribus/stylemanager.cpp Mon Jan 6 20:48:58 2014
@@ -994,6 +994,12 @@
void StyleManager::slotNameChanged(const QString& name)
{
+ if (m_item && name.isEmpty())
+ {
+ okButton->setEnabled(false);
+ applyButton->setEnabled(false);
+ return;
+ }
if (m_item && !nameIsUnique(name))
{
uniqueLabel->show();
@@ -1007,7 +1013,6 @@
okButton->setEnabled(true);
applyButton->setEnabled(true);
}
-
if (m_item)
{
More information about the scribus-commit
mailing list