From 930d7fe433e3ca59cffca26066b1a59ba0986259 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 19 Jun 2016 21:06:00 +0200 Subject: [PATCH] Changed: Delete menu directory when uninstalling Installer --- .../client/ryzom_installer/src/operationdialog.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp index 8252ffc63..7b535a221 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp @@ -1067,7 +1067,19 @@ void COperationDialog::deleteComponentsInstaller() deleteAddRemoveEntry(); - emit onProgressSuccess(m_components.servers.size()); + // delete menu + QString path = config->getMenuDirectory(); + + if (!path.isEmpty()) + { + QDir dir(path); + + dir.removeRecursively(); + } + + // TODO: + + emit onProgressSuccess(1); emit done(); }