D13805: Present error dialog when user tries to create directory named "." or ".."
    Nathaniel Graham 
    noreply at phabricator.kde.org
       
    Sat Jun 30 15:01:49 UTC 2018
    
    
  
ngraham added a reviewer: Frameworks.
ngraham added inline comments.
INLINE COMMENTS
> knewfilemenu.cpp:859
>          } else {
> +            // Test to see if the user has give "." or ".." as a name
> +            if (name == "." || name == "..") {
has give -> has given
> knewfilemenu.cpp:874
> +                KMessageBox::createKMessageBox(confirmDialog, buttonBox, QMessageBox::Warning,
> +                                   i18n("Cannot create directory with name \"%1\"", name),
> +                                   QStringList(),
This message might be a little bit too terse. How about something that helps explain the reason as well, like this?
> "<name>" has a special meaning for the operating system and cannot be used as the name for a folder.
REPOSITORY
  R241 KIO
REVISION DETAIL
  https://phabricator.kde.org/D13805
To: tmarshall, #dolphin, #frameworks
Cc: ngraham, kde-frameworks-devel, michaelh, spoorun, navarromorales, isidorov, firef, andrebarros, bruns, emmanuelp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180630/fa98d9c6/attachment.html>
    
    
More information about the Kde-frameworks-devel
mailing list