diff options
-rw-r--r-- | src/dolphin.cpp | 4 |
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())); |