Bug 67331 - forced to select directory in 'remote-resource' configuration dialog
Summary: forced to select directory in 'remote-resource' configuration dialog
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified FreeBSD
: NOR major
Target Milestone: ---
Assignee: Cornelius Schumacher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-05 19:42 UTC by brad
Modified: 2003-11-16 23:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brad 2003-11-05 19:42:49 UTC
Version:            (using KDE KDE 3.1.93)
Compiler:          gcc3.2 
OS:          FreeBSD

Problem Description:
When in the 'remote-resource' configuration dialog, the browse button in "Download URL:" only selects a directory. But, when loading the calender, korganizer expects a path to a file, not a directory.

To Reproduce:
Click to 'Add...' resource. Select 'remote' resource. Click on the browse button on "Download URL:." Select a calendar file. The resulting text box for the label "Download URL:" will have the path to the directory where you selected the file, rather than a the path to the file.

Now try to look at the calender, the following error will appear. "<some path> is a folder, but a file was expected."

This problem might also exist for the "Upload URL:" label as well.
Comment 1 Cornelius Schumacher 2003-11-16 01:50:39 UTC
This makes the remote resource unusable.
Comment 2 Cornelius Schumacher 2003-11-16 23:32:52 UTC
Subject: kdepim/libkcal

CVS commit by cschumac: 

Remote resource takes a filename, not a directory.

CCMAIL: 67331-done@bugs.kde.org


  M +2 -2      resourceremoteconfig.cpp   1.5


--- kdepim/libkcal/resourceremoteconfig.cpp  #1.4:1.5
@@ -49,5 +49,5 @@ ResourceRemoteConfig::ResourceRemoteConf
 
   mDownloadUrl = new KURLRequester( this );
-  mDownloadUrl->setMode( KFile::Files );
+  mDownloadUrl->setMode( KFile::File );
   mainLayout->addWidget( label, 1, 0 );
   mainLayout->addWidget( mDownloadUrl, 1, 1 );
@@ -56,5 +56,5 @@ ResourceRemoteConfig::ResourceRemoteConf
   label = new QLabel( i18n( "Upload URL:" ), this );
   mUploadUrl = new KURLRequester( this );
-  mUploadUrl->setMode( KFile::Files );
+  mUploadUrl->setMode( KFile::File );
   mainLayout->addWidget( label, 2, 0 );
   mainLayout->addWidget( mUploadUrl, 2, 1 );