From 96d2f1c1318896fad4e896f5d43f13f50f489145 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Tue, 30 Aug 2016 23:47:25 +0000 Subject: [PATCH] Minor git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4678 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/editor/qetelementeditor.cpp | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/sources/editor/qetelementeditor.cpp b/sources/editor/qetelementeditor.cpp index db4bdad2b..8052801d0 100644 --- a/sources/editor/qetelementeditor.cpp +++ b/sources/editor/qetelementeditor.cpp @@ -1043,33 +1043,15 @@ void QETElementEditor::openRecentFile(const QString &filepath) { * @brief QETElementEditor::slot_openDxf */ void QETElementEditor::slot_openDxf (){ -bool success; + #ifdef Q_OS_WIN32 QString program = (QDir::homePath() + "/Application Data/qet/DXFtoQET.exe"); #else QString program = (QDir::homePath() + "/.qet/DXFtoQET"); #endif - +QStringList arguments; QProcess *DXF = new QProcess(qApp); -success = DXF->startDetached(program); -if ( !success ) { -QMessageBox::warning(0, - "Error launching plugin DXF", - "To install the plugin DXF\nVisit https://download.tuxfamily.org/qet/builds/dxf_to_elmt/\n" - "\n" - ">> Install plugin on Linux\n" - "\n" - "cd ~/.qet/\n" - "wget http://download.tuxfamily.org/qet/builds/dxf_to_elmt/linux_x86-64_qt5.5.1/DXFtoQET\n" - "\n" - "chmod +x DXFtoQET\n" - "\n" - "\n" - ">> Install plugin on Windows\n" - "Download http://download.tuxfamily.org/qet/builds/dxf_to_elmt/windows_64/DXFtoQET.exe\n" - "Move or past this exe to your C:\\Users\\username\\AppData\\Roaming\\qet\\ directory\n" - ); -} +DXF->start(program,arguments); }