Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/knewfilemenu.cpp
Show First 20 Lines • Show All 864 Lines • ▼ Show 20 Line(s) | 859 | if (name == QLatin1String(".") || name == QLatin1String("..")) { | |||
---|---|---|---|---|---|
865 | confirmDialog->setModal(m_modal); | 865 | confirmDialog->setModal(m_modal); | ||
866 | confirmDialog->setAttribute(Qt::WA_DeleteOnClose); | 866 | confirmDialog->setAttribute(Qt::WA_DeleteOnClose); | ||
867 | 867 | | |||
868 | QDialogButtonBox *buttonBox = new QDialogButtonBox(confirmDialog); | 868 | QDialogButtonBox *buttonBox = new QDialogButtonBox(confirmDialog); | ||
869 | buttonBox->setStandardButtons(QDialogButtonBox::Cancel); | 869 | buttonBox->setStandardButtons(QDialogButtonBox::Cancel); | ||
870 | KGuiItem::assign(buttonBox->button(QDialogButtonBox::Cancel), cancelGuiItem); | 870 | KGuiItem::assign(buttonBox->button(QDialogButtonBox::Cancel), cancelGuiItem); | ||
871 | 871 | | |||
872 | KMessageBox::createKMessageBox(confirmDialog, buttonBox, QMessageBox::Critical, | 872 | KMessageBox::createKMessageBox(confirmDialog, buttonBox, QMessageBox::Critical, | ||
873 | xi18n("Folder <filename>%1</filename> could not be created:<nl/><filename>%1</filename> is reserved for use by the operating system.", name), | 873 | xi18n("Could not create a folder with the name <filename>%1</filename><nl/>because it is reserved for use by the operating system.", name), | ||
874 | QStringList(), | 874 | QStringList(), | ||
875 | QString(), | 875 | QString(), | ||
876 | nullptr, | 876 | nullptr, | ||
877 | KMessageBox::NoExec, | 877 | KMessageBox::NoExec, | ||
878 | QString()); | 878 | QString()); | ||
879 | 879 | | |||
880 | QObject::connect(buttonBox, SIGNAL(rejected()), q, SLOT(createDirectory())); | 880 | QObject::connect(buttonBox, SIGNAL(rejected()), q, SLOT(createDirectory())); | ||
881 | m_fileDialog = confirmDialog; | 881 | m_fileDialog = confirmDialog; | ||
▲ Show 20 Lines • Show All 444 Lines • Show Last 20 Lines |