Changed: Minor changes

--HG--
branch : develop
feature/pipeline-tools
kervala 8 years ago
parent 983f4f81df
commit 2377b6a45d

@ -245,13 +245,15 @@ void CMainWindow::onUninstall()
components = dialog.getSelectedCompenents(); components = dialog.getSelectedCompenents();
} }
COperationDialog dialog; {
COperationDialog dialog(this);
dialog.setOperation(OperationUninstall); dialog.setOperation(OperationUninstall);
dialog.setUninstallComponents(components); dialog.setUninstallComponents(components);
if (dialog.exec()) if (dialog.exec())
{ {
}
} }
} }

@ -771,14 +771,9 @@ void COperationDialog::copyInstaller()
// create menu directory if defined // create menu directory if defined
QString path = config->getMenuDirectory(); QString path = config->getMenuDirectory();
if (!path.isEmpty()) if (!path.isEmpty() && !QDir().mkpath(path))
{ {
QDir dir; qDebug() << "Unable to create directory" << path;
if (!dir.mkpath(path))
{
qDebug() << "Unable to create directory" << path;
}
} }
// create installer link in menu // create installer link in menu

@ -229,9 +229,6 @@ bool resolveShortcut(const QWidget &window, const QString &shortcut, QString &pa
// Handle success // Handle success
path = QDir::fromNativeSeparators(qFromWide(szGotPath)); path = QDir::fromNativeSeparators(qFromWide(szGotPath));
} }
else
{
}
} }
} }
} }

Loading…
Cancel
Save