Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/panelfunc.cpp
Context not available. | |||||
506 | // ask the user for the filename to edit | 506 | // ask the user for the filename to edit | ||
---|---|---|---|---|---|
507 | const QUrl filePath = KChooseDir::getFile(i18n("Enter the filename to edit:"), | 507 | const QUrl filePath = KChooseDir::getFile(i18n("Enter the filename to edit:"), | ||
508 | QUrl(panel->getCurrentName()), panel->virtualPath()); | 508 | QUrl(panel->getCurrentName()), panel->virtualPath()); | ||
509 | if(filePath.isEmpty()) | 509 | if (filePath.isEmpty()) { | ||
510 | return ; // the user canceled | 510 | return; // the user canceled | ||
511 | } | ||||
511 | 512 | | |||
512 | if (filePath.isLocalFile()) { | 513 | if (filePath.isLocalFile()) { | ||
513 | // if the file exists, edit it instead of creating a new one | 514 | // if the file exists, edit it instead of creating a new one | ||
Context not available. | |||||
561 | } | 562 | } | ||
562 | 563 | | |||
563 | if (statJob->statResult().isDir()) { | 564 | if (statJob->statResult().isDir()) { | ||
564 | KMessageBox::error(nullptr, i18n("You cannot edit a folder")); | 565 | KMessageBox::sorry(nullptr, i18n("You cannot edit a folder")); | ||
565 | return; | 566 | return; | ||
566 | } | 567 | } | ||
567 | 568 | | |||
Context not available. |