r14524 by fschmid - Fixed wrong parameter in the registerFormat call.
scribus-commit
scribus-commit at lists.scribus.net
Fri Jan 15 22:05:43 CET 2010
Revision: 14524
Author: fschmid
Date: 2010-01-15T07:22:51.707356Z
Commit message: Fixed wrong parameter in the registerFormat call.
Changeset:
M /trunk/Scribus/scribus/plugins/import/idml/importidml.cpp
Diffs:
Index: scribus/plugins/import/idml/importidml.cpp
===================================================================
--- scribus/plugins/import/idml/importidml.cpp (revision 14523)
+++ scribus/plugins/import/idml/importidml.cpp (revision 14524)
@@ -27,6 +27,7 @@
#include "undomanager.h"
#include "units.h"
#include "util.h"
+#include "util_formats.h"
#include "util_math.h"
#include "util_color.h"
@@ -79,7 +80,8 @@
fmt.trName = idmlName;
fmt.formatId = FORMATID_IDMLIMPORT;
fmt.filter =idmlName + "(*.idml *.IDML)"; // QFileDialog filter
- fmt.nameMatch = QRegExp("\\.(idml|IDML)?", Qt::CaseInsensitive);
+ fmt.nameMatch = QRegExp("\\."+FormatsManager::instance()->extensionListForFormat(FormatsManager::IDML, 1)+"$", Qt::CaseInsensitive);
+// fmt.nameMatch = QRegExp("\\.(idml|IDML)?", Qt::CaseInsensitive);
fmt.load = true;
fmt.save = false;
fmt.mimeTypes = QStringList();
More information about the scribus-commit
mailing list