r22168 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sun Oct 1 10:16:02 UTC 2017


Author: jghali
Date: Sun Oct  1 10:16:02 2017
New Revision: 22168

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22168
Log:
fix issues slowing down language switching

Modified:
    trunk/Scribus/scribus/ui/propertiespalette_shadow.cpp
    trunk/Scribus/scribus/ui/propertiespalette_text.cpp

Modified: trunk/Scribus/scribus/ui/propertiespalette_shadow.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22168&path=/trunk/Scribus/scribus/ui/propertiespalette_shadow.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertiespalette_shadow.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertiespalette_shadow.cpp	Sun Oct  1 10:16:02 2017
@@ -279,6 +279,8 @@
 
 void PropertiesPalette_Shadow::languageChange()
 {
+	disconnect(this->model(), SIGNAL(dataChanged(const QModelIndex&, const QModelIndex&)), this, SLOT(handleNewValues()));
+
 	hasSoftShadow->setText(0, tr( "Has Drop Shadow"));
 	softShadowXOffset->setText(0, tr( "X-Offset:"));
 	softShadowYOffset->setText(0, tr( "Y-Offset:"));
@@ -308,6 +310,8 @@
 	softShadowBlendMode->setComboStrings(modes);
 	softShadowBlendMode->setStringValue( tr("Normal"));
 	softShadowBlendMode->setText(0, tr( "Blendmode:"));
+
+	connect(this->model(), SIGNAL(dataChanged(const QModelIndex&, const QModelIndex&)), this, SLOT(handleNewValues()));
 }
 
 void PropertiesPalette_Shadow::updateSpinBoxConstants()

Modified: trunk/Scribus/scribus/ui/propertiespalette_text.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22168&path=/trunk/Scribus/scribus/ui/propertiespalette_text.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertiespalette_text.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertiespalette_text.cpp	Sun Oct  1 10:16:02 2017
@@ -710,6 +710,7 @@
 	textTree->setItemText(advancedWidgetsItem, tr("Advanced Settings"));
 	textTree->setItemText(fontfeaturesWidgetItem, tr("Font Features"));
 	textTree->setItemText(pathTextItem, tr("Path Text Properties"));
+
 	QSignalBlocker lineSpacingModeBlocker(lineSpacingModeCombo);
 	int oldLineSpacingMode = lineSpacingModeCombo->currentIndex();
 	lineSpacingModeCombo->clear();
@@ -718,6 +719,7 @@
 	lineSpacingModeCombo->addItem( tr("Align to Baseline Grid"));
 	lineSpacingModeCombo->setCurrentIndex(oldLineSpacingMode);
 
+	QSignalBlocker langComboBlocker(langCombo);
 	QStringList languageList;
 	LanguageManager::instance()->fillInstalledStringList(&languageList);
 	int oldLang = langCombo->currentIndex();




More information about the scribus-commit mailing list