From dcbc933fce7ffe805a3b4c9d011d6d248cd30013 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Wed, 28 Nov 2012 21:08:35 +0000 Subject: [PATCH] Permit starting jt9.exe from a directory with embedded spaces. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2785 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- lib/Makefile.MinGW | 2 +- mainwindow.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Makefile.MinGW b/lib/Makefile.MinGW index e511092d5..1d657db2e 100644 --- a/lib/Makefile.MinGW +++ b/lib/Makefile.MinGW @@ -37,7 +37,7 @@ libjt9.a: $(OBJS1) ar cr libjt9.a $(OBJS1) ranlib libjt9.a -OBJS2 = jt9.o jt9a.o ipcomm.o sleep_msec.o +OBJS2 = jt9.o jt9a.o ipcomm.o sec_midn.o cutil.o LIBS2 = -L'c:/QtSDK/Desktop/Qt/4.7.4/mingw/lib' -lQtCore4 jt9.exe: $(OBJS2) libjt9.a g++ -o jt9.exe $(OBJS2) $(LIBS2) libjt9.a ../libfftw3f_win.a \ diff --git a/mainwindow.cpp b/mainwindow.cpp index b6e1b8815..f96cb7b97 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//-------------------------------------------------------------- MainWindow +//--------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h" @@ -160,7 +160,7 @@ MainWindow::MainWindow(QWidget *parent) : lockFile.open(QIODevice::ReadWrite); QFile quitFile(m_appDir + "/.lock"); quitFile.remove(); - proc_jt9.start(QDir::toNativeSeparators(m_appDir + "/jt9 -s")); + proc_jt9.start(QDir::toNativeSeparators('"' + m_appDir + '"' + "/jt9 -s")); m_pbdecoding_style1="QPushButton{background-color: cyan; \ border-style: outset; border-width: 1px; border-radius: 5px; \