X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/7cd37f474739f666db310c65db9035591c3c7d78..d6488887ecf69d7f192b94de8dce34fae0b7eb76:/src/renamedialog.cpp diff --git a/src/renamedialog.cpp b/src/renamedialog.cpp index d4d9e16d1..4a72fda16 100644 --- a/src/renamedialog.cpp +++ b/src/renamedialog.cpp @@ -26,8 +26,8 @@ #include #include -RenameDialog::RenameDialog(const QList& items) : - KDialog(), +RenameDialog::RenameDialog(QWidget *parent, const KFileItemList& items) : + KDialog(parent), m_renameOneItem(false) { const QSize minSize = minimumSize(); @@ -116,7 +116,7 @@ void RenameDialog::slotButtonClicked(int button) if (m_newName.isEmpty()) { m_errorString = i18nc("@info:status", "The new name is empty. A name with at least one character must be entered."); - } else if (!m_renameOneItem && m_newName.contains('#') != 1) { + } else if (!m_renameOneItem && m_newName.count('#') != 1) { m_newName.truncate(0); m_errorString = i18nc("@info:status", "The name must contain exactly one # character."); }