r19255 by craig - #12401: Continue pressing on Refresh Downloadable List in Spelling preferences crashes Scribus
scribus-commit
scribus-commit at lists.scribus.net
Wed Jun 18 21:37:03 UTC 2014
Author: craig
Date: Wed Jun 18 21:37:03 2014
New Revision: 19255
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19255
Log:
#12401: Continue pressing on Refresh Downloadable List in Spelling preferences crashes Scribus
Modified:
trunk/Scribus/scribus/ui/prefs_spelling.cpp
Modified: trunk/Scribus/scribus/ui/prefs_spelling.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19255&path=/trunk/Scribus/scribus/ui/prefs_spelling.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/prefs_spelling.cpp (original)
+++ trunk/Scribus/scribus/ui/prefs_spelling.cpp Wed Jun 18 21:37:03 2014
@@ -63,6 +63,7 @@
void Prefs_Spelling::downloadSpellDicts()
{
+ spellDownloadButton->setEnabled(false);
qDebug()<<"Now attempting downloads";
int rows=availDictTableWidget->rowCount();
QStringList dlLangs;
@@ -149,6 +150,7 @@
void Prefs_Spelling::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();
@@ -158,6 +160,7 @@
{
disconnect(ScQApp->dlManager(), SIGNAL(finished()), this, SLOT(downloadDictListFinished()));
setAvailDictsXMLFile(downloadLocation + "scribus_spell_dicts.xml");
+ availListDownloadButton->setEnabled(true);
}
void Prefs_Spelling::downloadSpellDictsFinished()
@@ -220,6 +223,7 @@
downloadProgressBar->setValue(0);
downloadProgressBar->setVisible(false);
dlLabel->setVisible(false);
+ spellDownloadButton->setEnabled(true);
}
void Prefs_Spelling::updateProgressBar()
More information about the scribus-commit
mailing list