summaryrefslogtreecommitdiffstats
path: root/src/dolphin.cpp
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-17 10:47:57 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-17 10:47:57 +0000
commit19954ea994a4e7830d6c77cf961341ec00d5c500 (patch)
treeaf7b04be7af29523afd63917942b23a2ae3a4699 /src/dolphin.cpp
parent0dab15c552253173e3af6ae1ad0db6eece57dbe2 (diff)
downloaddolphin-19954ea994a4e7830d6c77cf961341ec00d5c500.tar.gz
dolphin-19954ea994a4e7830d6c77cf961341ec00d5c500.zip
[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
Diffstat (limited to 'src/dolphin.cpp')
-rw-r--r--src/dolphin.cpp4
1 files 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()));