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: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b4feb8dd
......@@ -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) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment