From 19954ea994a4e7830d6c77cf961341ec00d5c500 Mon Sep 17 00:00:00 2001 From: samelian Date: Mon, 17 Jan 2011 10:47:57 +0000 Subject: [PATCH] [applications/dolphin] make compatible with QT_NO_ASCII_CAST flag git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1215023 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/dolphin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dolphin.cpp b/src/dolphin.cpp index 09eeeeb..0e81b6b 100644 --- a/src/dolphin.cpp +++ b/src/dolphin.cpp @@ -456,7 +456,7 @@ void Dolphin::createFile() QString sourcePath(entry.templatePath.left(pos + 1)); sourcePath += KDesktopFile(entry.templatePath, true).readPathEntry("URL"); - QString name(i18n(entry.name)); + QString name(i18n(entry.name.ascii())); // Most entry names end with "..." (e. g. "HTML File..."), which is ok for // menus but no good choice for a new file name -> remove the dots... name.replace("...", QString::null); @@ -1410,7 +1410,7 @@ void Dolphin::setupCreateNewMenuActions() CreateFileEntry entry = (*it).value(); KAction* action = new KAction(entry.name); action->setIcon(entry.icon); - action->setName((*it).index()); + action->setName((*it).index().ascii()); connect(action, SIGNAL(activated()), this, SLOT(createFile()));