403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
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/multimedia/qwinff/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/multimedia/qwinff/files/patch-src_ui_mainwindow.cpp
--- src/ui/mainwindow.cpp.orig	2020-10-25 12:05:30 UTC
+++ src/ui/mainwindow.cpp
@@ -48,6 +48,8 @@
 #include <QDebug>
 #include <QUrl>
 
+#define DATA_PATH "%%DATADIR%%"
+
 MainWindow::MainWindow(QWidget *parent, const QStringList& fileList) :
     QMainWindow(parent),
     ui(new Ui::MainWindow),
@@ -673,7 +675,9 @@ int MainWindow::get_poweroff_behavior()
 bool MainWindow::load_presets()
 {
     // The default preset file is located in <datapath>/presets.xml
-    QString default_preset_file = QDir(Paths::dataPath()).absoluteFilePath("presets.xml");
+    //QString default_preset_file = QDir(Paths::dataPath()).absoluteFilePath("presets.xml");
+    QString app_path = QString(DATA_PATH);
+    QString default_preset_file = QDir(app_path).absoluteFilePath("presets.xml");
 
     QString local_preset_file;
     if (!Constants::getBool("Portable")) { // non-portable app

Youez - 2016 - github.com/yon3zu
LinuXploit