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-15 15:15:43 +0100
commitab700191fa487a238d9cd03c81c9e1ef7124548f (patch)
treec1d1e65ad31314bbe1aa782b2b699a52ca5c0cde /src/update.cpp
parentfbb5b1424b098b844b4f744cdeea97ba5279764f (diff)
downloadtork-ab700191fa487a238d9cd03c81c9e1ef7124548f.tar.gz
tork-ab700191fa487a238d9cd03c81c9e1ef7124548f.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]> (cherry picked from commit 355f00c2bd6f4b2870133d0423420ef8046b7156)
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));