[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
v3.5.13-sru
samelian 13 years ago
parent 0dab15c552
commit 19954ea994

@ -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()));

Loading…
Cancel
Save