r15491 by jghali - #9334: Template categories do not match
scribus-commit
scribus-commit at lists.scribus.net
Wed Sep 29 08:11:03 CEST 2010
Author: jghali
Date: Wed Sep 29 06:11:03 2010
New Revision: 15491
URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15491
Log:
#9334: Template categories do not match
Modified:
trunk/Scribus/scribus/ui/nftwidget.cpp
Modified: trunk/Scribus/scribus/ui/nftwidget.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15491&path=/trunk/Scribus/scribus/ui/nftwidget.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/nftwidget.cpp (original)
+++ trunk/Scribus/scribus/ui/nftwidget.cpp Wed Sep 29 06:11:03 2010
@@ -50,7 +50,6 @@
{
QStringList categories;
categoryList->clear();
- categoryList->addItem(tr("All"));
for (uint i = 0; i < settings->templates.size(); i++)
{
if ((!categories.contains(settings->templates[i]->templateCategory)) &&
@@ -61,6 +60,7 @@
}
}
categoryList->sortItems();
+ categoryList->insertItem(0, tr("All"));
categoryList->setCurrentRow(0);
}
More information about the scribus-commit
mailing list