From 355f00c2bd6f4b2870133d0423420ef8046b7156 Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Thu, 14 Jan 2021 02:37:59 +0100 Subject: Added controlled conversions to char* instead of automatic ascii conversions. The definition of -UTQT_NO_ASCII_CAST is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/update.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/update.cpp') 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)); -- cgit v1.2.3