| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/science/scidavis/files/ |
Upload File : |
--- libscidavis/src/ApplicationWindow.cpp.orig 2022-04-16 07:39:19 UTC
+++ libscidavis/src/ApplicationWindow.cpp
@@ -4201,7 +4201,7 @@ void ApplicationWindow::readSettings()
settings.endGroup(); // Colors
settings.beginGroup("/Paths");
- workingDir = settings.value("/WorkingDir", qApp->applicationDirPath()).toString();
+ workingDir = settings.value("/WorkingDir", QDir::homePath()).toString();
helpFilePath = settings.value("/HelpFile", "").toString();
#ifdef PLUGIN_PATH
QString defaultFitPluginsPath = PLUGIN_PATH;
@@ -8063,6 +8063,10 @@ void ApplicationWindow::showWindowTitleBarMenu()
void ApplicationWindow::chooseHelpFolder()
{
// TODO: move all paths & location handling to anothor class
+#ifdef DOC_PATH
+ const QString locateDefaultHelp = DOC_PATH +
+ QDir::toNativeSeparators("/manual/index.html");
+#else // defined DOC_PATH
#if defined(Q_OS_WIN)
const QString locateDefaultHelp =
qApp->applicationDirPath() + QDir::toNativeSeparators("/manual/index.html");
@@ -8070,6 +8074,8 @@ void ApplicationWindow::chooseHelpFolder()
const QString locateDefaultHelp =
QDir::toNativeSeparators("/usr/share/doc/scidavis/manual/index.html");
#endif
+#endif // defined DOC_PATH
+
if (QFile(locateDefaultHelp).exists()) {
helpFilePath = locateDefaultHelp;
} else {