X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=src%2Fexport-base.cpp;h=65ce208e1665ca1d1cbda0f20040128a33c4b7c9;hb=HEAD;hp=39e06bffae1baa6ea91e0268072846d2db2c79fa;hpb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;p=sven%2Fvym.git diff --git a/src/export-base.cpp b/src/export-base.cpp index 39e06bf..65ce208 100644 --- a/src/export-base.cpp +++ b/src/export-base.cpp @@ -17,12 +17,6 @@ #include "xsltproc.h" extern Main *mainWindow; -// extern QDir vymBaseDir; -// extern QString flagsPath; -// extern QString vymName; -// extern QString vymVersion; -// extern QString vymHome; -extern Settings settings; extern QDir lastExportDir; ExportBase::ExportBase() { init(); } @@ -169,12 +163,9 @@ void ExportBase::completeExport(QStringList args) command += ")"; } - settings.setLocalValue(model->getFilePath(), "/export/last/command", - command); - settings.setLocalValue(model->getFilePath(), "/export/last/description", - exportName); - settings.setLocalValue(model->getFilePath(), "/export/last/displayedDestination", - displayedDestination); + model->setExportLastCommand(command); + model->setExportLastDestination(displayedDestination); + model->setExportLastDescription(exportName); // Trigger saving of export command if it has changed if (model && (lastCommand != command))