r15718 by fschmid - Avoid duplicate entries in returned extension lists

scribus-commit scribus-commit at lists.scribus.net
Mon Nov 1 12:10:19 CET 2010


Author: fschmid
Date: Mon Nov  1 11:10:19 2010
New Revision: 15718

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15718
Log:
Avoid duplicate entries in returned extension lists

Modified:
    trunk/Scribus/scribus/loadsaveplugin.cpp

Modified: trunk/Scribus/scribus/loadsaveplugin.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15718&path=/trunk/Scribus/scribus/loadsaveplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/loadsaveplugin.cpp (original)
+++ trunk/Scribus/scribus/loadsaveplugin.cpp Mon Nov  1 11:10:19 2010
@@ -89,6 +89,10 @@
 	}
 	else
 		qDebug("%s", tr("No File Loader Plugins Found").toLocal8Bit().data());
+	// Avoid duplicate entries in the list
+	QSet<QString> fSet = filterList.toSet();
+	filterList = fSet.toList();
+	qSort(filterList);
 	return filterList;
 }
 
@@ -121,6 +125,10 @@
 	}
 	else
 		qDebug("%s", tr("No File Loader Plugins Found").toLocal8Bit().data());
+	// Avoid duplicate entries in the list
+	QSet<QString> fSet = filterList.toSet();
+	filterList = fSet.toList();
+	qSort(filterList);
 	return filterList;
 }
 
@@ -153,6 +161,10 @@
 	}
 	else
 		qDebug("%s", tr("No File Loader Plugins Found").toLocal8Bit().data());
+	// Avoid duplicate entries in the list
+	QSet<QString> fSet = filterList.toSet();
+	filterList = fSet.toList();
+	qSort(filterList);
 	return filterList;
 }
 




More information about the scribus-commit mailing list