[Bug 164305] New: Folderview shouldn't accept an empty directory.

FiNeX finex at finex.org
Tue Jun 17 16:11:01 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=164305         
           Summary: Folderview shouldn't accept an empty directory.
           Product: plasma
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: panel-devel kde org
        ReportedBy: finex finex org


Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

1) add a folder view
2) go to the config dialog
3) select "show a custom folder"
4) empty the "custom folder" field
5) press OK button

First bug: You'll prompted with a "Malformed URL" error, and the config dialog will be closed

6) reopen the config dialog
7) press OK

Second bug: You'll not be prompted again.

Quick fix:

if (url.isEmpty()) {
  url = KUrl("desktop:/");
  ui.showDesktopFolder->setChecked(true);
  ui.showCustomFolder->setChecked(false);
  ui.selectLabel->setEnabled(false);
  ui.lineEdit->setEnabled(false);
}


More information about the Panel-devel mailing list