r20615 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Mon Dec 7 20:40:45 UTC 2015


Author: jghali
Date: Mon Dec  7 20:40:45 2015
New Revision: 20615

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20615
Log:
#13592: Download in Resource Manager crashes Scribus

Modified:
    trunk/Scribus/scribus/ui/resourcemanager.cpp

Modified: trunk/Scribus/scribus/ui/resourcemanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20615&path=/trunk/Scribus/scribus/ui/resourcemanager.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/resourcemanager.cpp	(original)
+++ trunk/Scribus/scribus/ui/resourcemanager.cpp	Mon Dec  7 20:40:45 2015
@@ -750,12 +750,13 @@
 
 void ResourceManager::startDownload()
 {
-	int rows=availableTableWidget->rowCount();
+	int rows = availableTableWidget->rowCount();
+	int columns = availableTableWidget->columnCount();
 	QStringList filesToDownload;
-	for (int i=0; i<rows; ++i)
-	{
-		QTableWidgetItem *dlItem=availableTableWidget->item(i, 4);
-		if (dlItem->checkState()==Qt::Checked)
+	for (int i=0; i < rows; ++i)
+	{
+		QTableWidgetItem *dlItem = availableTableWidget->item(i, columns - 1);
+		if (dlItem->checkState() == Qt::Checked)
 			filesToDownload<<availableTableWidget->item(i, 0)->text();
 	}
 	if (filesToDownload.isEmpty())




More information about the scribus-commit mailing list