Skip to content
Snippets Groups Projects
Commit 0e1875c9 authored by Isaak Lim's avatar Isaak Lim
Browse files

for objects with unknown extensions, saveSettings now also lets the user specify valid extensions

closes #1770

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17680 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b4feb8dd
No related branches found
No related tags found
No related merge requests found
......@@ -294,8 +294,10 @@ void Core::saveSettings(QString complete_name, bool is_saveObjectInfo, bool is_t
filename += finfo.completeSuffix();
}
// check if we have an extension for the object
if (QFileInfo(filename).suffix() == "") {
const QString suffix = QFileInfo(filename).suffix();
if (suffix == "" || !allFilters.contains(suffix)) {
if (!applyToAll) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment