summaryrefslogtreecommitdiffstats
path: root/src/update.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2021-01-14 02:37:59 +0100
committerSlávek Banko <[email protected]>2021-01-14 02:37:59 +0100
commit355f00c2bd6f4b2870133d0423420ef8046b7156 (patch)
tree914337ce5bd4bd2bc984866f02c370c2a2788c7e /src/update.cpp
parent5962b7e681adb58055898f2e35665934bd08e235 (diff)
downloadtork-355f00c2bd6f4b2870133d0423420ef8046b7156.tar.gz
tork-355f00c2bd6f4b2870133d0423420ef8046b7156.zip
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed. Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src/update.cpp')
-rw-r--r--src/update.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/update.cpp b/src/update.cpp
index 359b0c9..da9d628 100644
--- a/src/update.cpp
+++ b/src/update.cpp
@@ -242,10 +242,10 @@ void TorkUpdate::downloadComponent(TQString component, TQString version, TQStrin
if (torkdir.exists() && configurefile.exists()){
- chmod((const char *)configure,0700);
+ chmod(configure.local8Bit(), 0700);
int result = KMessageBox::warningContinueCancel(0, i18n( "%1-%2 is ready for compiling and installation. Would you like the wizard to ask you for the root password so it can compile and install it for you? (If not, you can compile it yourself later at %3/%4-%5)").arg(component).arg(version).arg(location).arg(component).arg(version),i18n( "Install %1-%2" ).arg(component).arg(version),i18n( "Use the Wizard" ));
-
+
switch (result) {
case 2 :
KMessageBox::information (0,i18n("Installation of %1 Cancelled.").arg(component));