From f27b388b11ab5a9370a94c1a2fee6fb8d92444b1 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 --HG-- branch : develop --- .../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(); }