SVN commit 1174616 by adawit: - Allow the creation of files/directories that start with "~". BUG:117473 M +9 -2 knewfilemenu.cpp --- trunk/KDE/kdelibs/kfile/knewfilemenu.cpp #1174615:1174616 @@ -723,9 +723,16 @@ QString name = m_text; if (!name.isEmpty()) { - if ((name[0] == '/') || (name[0] == '~')) { + // Expand any tilde mark that might have been specified... + const QString expandedName = KShell::tildeExpand(name); + + // When a tilde mark cannot be properly expanded, the above call returns + // an empty string ; so we handle that scenario here... + if (!expandedName.isEmpty()) + name = expandedName; + + if ((name[0] == '/')) url.setPath(KShell::tildeExpand(name)); - } else { if (!m_viewShowsHiddenFiles && name.startsWith('.')) { if (!writeHiddenDir) {