Commit c79dd529 authored by Maik Qualmann's avatar Maik Qualmann

fix CID #1465266

parent 1069c6db
Pipeline #27059 canceled with stage
......@@ -69,8 +69,6 @@ public:
const static QString IMAGE_COMPRESSION;
const static QString REMOVE_METADATA;
const static QString DIALOG;
FCExportWidget* exportWidget;
FCThread* thread;
};
......@@ -86,10 +84,8 @@ const QString FCExportWindow::Private::IMAGE_FORMAT = QLatin1String("
const QString FCExportWindow::Private::IMAGE_COMPRESSION = QLatin1String("imageCompression");
const QString FCExportWindow::Private::REMOVE_METADATA = QLatin1String("removeMetadata");
const QString FCExportWindow::Private::DIALOG = QLatin1String("FileCopy Export Dialog");
FCExportWindow::FCExportWindow(DInfoInterface* const iface, QWidget* const /*parent*/)
: WSToolDialog(nullptr, d->DIALOG),
: WSToolDialog(nullptr, QLatin1String("FileCopy Export Dialog")),
d(new Private)
{
d->exportWidget = new FCExportWidget(iface, this);
......@@ -168,7 +164,7 @@ void FCExportWindow::restoreSettings()
d->exportWidget->setSettings(settings);
winId();
KConfigGroup group2 = config->group(d->DIALOG);
KConfigGroup group2 = config->group(objectName());
KWindowConfig::restoreWindowSize(windowHandle(), group2);
resize(windowHandle()->size());
}
......@@ -188,7 +184,7 @@ void FCExportWindow::saveSettings()
group.writeEntry(d->REMOVE_METADATA, settings.removeMetadata);
group.writeEntry(d->CHANGE_IMAGE_PROPERTIES, settings.changeImageProperties);
KConfigGroup group2 = config->group(d->DIALOG);
KConfigGroup group2 = config->group(objectName());
KWindowConfig::saveWindowSize(windowHandle(), group2);
config->sync();
}
......
Markdown is supported
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