| # | Line 154 | Line 154 | void XmlToolsInterface::on_pbPreviewOper | |
|---|---|---|
| 154 | ||
| 155 | QFile oldFile(previewFileLocation); | |
| 156 | ||
| 157 | + | // Create temp folder if it doesn't exist |
| 158 | + | if(!QDir(GlobalVars::VagoTemporaryDir).exists()){ |
| 159 | + | QDir().mkdir(GlobalVars::VagoTemporaryDir); |
| 160 | + | } |
| 161 | + | |
| 162 | if(oldFile.exists()){ | |
| 163 | if(!oldFile.remove()){ | |
| 164 | UtilVago::showAndLogErrorPopUpLogButton(this->myLogger, | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |