From 24e310ec57f92fb0aa08d637c87b378f05944e70 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 7 May 2015 18:14:52 -0300 Subject: [PATCH 1/2] Arch: Fixed makefile --- src/Mod/Arch/CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Mod/Arch/CMakeLists.txt b/src/Mod/Arch/CMakeLists.txt index fa1b9734d..d01acf24b 100644 --- a/src/Mod/Arch/CMakeLists.txt +++ b/src/Mod/Arch/CMakeLists.txt @@ -31,9 +31,7 @@ SET(Arch_SRCS ArchCutPlane.py ArchServer.py ArchMaterial.py - ArchMaterial.ui ArchSchedule.py - ArchSchedule.ui ) SOURCE_GROUP("" FILES ${Arch_SRCS}) From dd78ad7e72d58e7fb17dccb11620a42e9f27772c Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 7 May 2015 18:17:35 -0300 Subject: [PATCH 2/2] Better message if qt help file is not found - fixes #2084 --- src/Gui/Assistant.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Gui/Assistant.cpp b/src/Gui/Assistant.cpp index 1c1b056fc..b650bf4e3 100644 --- a/src/Gui/Assistant.cpp +++ b/src/Gui/Assistant.cpp @@ -33,6 +33,7 @@ #include "Assistant.h" #include +#include #include using namespace Gui; @@ -96,13 +97,20 @@ bool Assistant::startAssistant() QString exe = QString::fromUtf8(App::GetApplication().getExecutableName()); QString doc = QString::fromUtf8(App::Application::getHelpDir().c_str()); QString qhc = doc + exe.toLower() + QLatin1String(".qhc"); + + Base::FileInfo fi ( (const char*)qhc.toUtf8() ); + if (!fi.isReadable()) { + QMessageBox::critical(0, QObject::tr("%1 Help").arg(exe), + QObject::tr("FreeCAD help files not found (%1). You might need to install the FreeCAD documentation package.").arg(qhc)); + return false; + } static bool first = true; if (first) { Base::Console().Log("Help file at %s\n", (const char*)qhc.toUtf8()); first = false; - } - + } + QStringList args; args << QLatin1String("-collectionFile") << qhc