r19259 by jghali - #12401 (backport): Continue pressing on "Refresh Downloadable List" crashes Scribus

scribus-commit scribus-commit at lists.scribus.net
Thu Jun 19 22:10:06 UTC 2014


Author: jghali
Date: Thu Jun 19 22:10:06 2014
New Revision: 19259

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19259
Log:
#12401 (backport): Continue pressing on "Refresh Downloadable List" crashes Scribus

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

Modified: branches/Version14x/Scribus/scribus/hysettings.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19259&path=/branches/Version14x/Scribus/scribus/hysettings.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/hysettings.cpp (original)
+++ branches/Version14x/Scribus/scribus/hysettings.cpp Thu Jun 19 22:10:06 2014
@@ -169,6 +169,7 @@
 
 void HySettings::downloadSpellDicts()
 {
+	spellDownloadButton->setEnabled(false);
 	qDebug()<<"Now attempting downloads";
 	int rows=availDictTableWidget->rowCount();
 	QStringList dlLangs;
@@ -256,6 +257,7 @@
 
 void HySettings::updateAvailDictList()
 {
+	availListDownloadButton->setEnabled(false);
 	ScQApp->dlManager()->addURL("http://services.scribus.net/scribus_spell_dicts.xml", true, downloadLocation);
 	connect(ScQApp->dlManager(), SIGNAL(finished()), this, SLOT(downloadDictListFinished()));
 	ScQApp->dlManager()->startDownloads();
@@ -265,6 +267,7 @@
 {
 	disconnect(ScQApp->dlManager(), SIGNAL(finished()), this, SLOT(downloadDictListFinished()));
 	setAvailDictsXMLFile(downloadLocation + "scribus_spell_dicts.xml");
+	availListDownloadButton->setEnabled(true);
 }
 
 void HySettings::downloadSpellDictsFinished()
@@ -323,6 +326,7 @@
 	downloadProgressBar->setValue(0);
 	downloadProgressBar->setVisible(false);
 	dlLabel->setVisible(false);
+	spellDownloadButton->setEnabled(true);
 }
 
 void HySettings::updateProgressBar()




More information about the scribus-commit mailing list