From a1a2f81e9e131adc82330d0e20f02e00e3e12a25 Mon Sep 17 00:00:00 2001 From: Noldor Date: Sun, 13 Apr 2008 17:47:27 +0000 Subject: removed QT3 QString stuff (wip). Need test. git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1476 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/filetransferwindow/filetransferwindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/filetransferwindow/filetransferwindow.cpp') diff --git a/src/modules/filetransferwindow/filetransferwindow.cpp b/src/modules/filetransferwindow/filetransferwindow.cpp index e69405877..d0b2b052b 100644 --- a/src/modules/filetransferwindow/filetransferwindow.cpp +++ b/src/modules/filetransferwindow/filetransferwindow.cpp @@ -462,7 +462,7 @@ void KviFileTransferWindow::openLocalFileTerminal() tmp.append("\""); // FIXME: this is not a solution ...because if the drive isn't system's drive the command 'cd' naturaly doesn't work tmp.prepend("cmd.exe /k cd \""); - system(tmp.local8Bit().data()); + system(tmp.toLocal8Bit().data()); #else //COMPILE_ON_WINDOWS // G&N end #ifdef COMPILE_KDE_SUPPORT @@ -513,7 +513,7 @@ void KviFileTransferWindow::openLocalFile() QString tmp = t->localFileName(); if(tmp.isEmpty())return; tmp.replace("/","\\"); - ShellExecute(0,"open",tmp.local8Bit().data(),NULL,NULL,SW_SHOWNORMAL); //You have to link the shell32.lib + ShellExecute(0,"open",tmp.toLocal8Bit().data(),NULL,NULL,SW_SHOWNORMAL); //You have to link the shell32.lib #else //!COMPILE_ON_WINDOWS // G&N end #ifdef COMPILE_KDE_SUPPORT @@ -549,7 +549,7 @@ void KviFileTransferWindow::openLocalFileWith() if(tmp.isEmpty())return; tmp.replace("/","\\"); tmp.prepend("rundll32.exe shell32.dll,OpenAs_RunDLL "); // this if to show the 'open with...' window - WinExec(tmp.local8Bit().data(),SW_SHOWNORMAL); + WinExec(tmp.toLocal8Bit().data(),SW_SHOWNORMAL); #else //!COMPILE_ON_WINDOWS // G&N end #ifdef COMPILE_KDE_SUPPORT @@ -587,7 +587,7 @@ void KviFileTransferWindow::openLocalFileFolder() tmp=QFileInfo(tmp).dirPath(TRUE); tmp.replace('/','\\'); tmp.prepend("explorer.exe "); - WinExec(tmp.local8Bit().data(), SW_MAXIMIZE); + WinExec(tmp.toLocal8Bit().data(), SW_MAXIMIZE); #else //!COMPILE_ON_WINDOWS // G&N end #ifdef COMPILE_KDE_SUPPORT -- cgit v1.3.1-10-gc9f91