Commit 7a513028 authored by Thomas McGuire's avatar Thomas McGuire
Browse files

Fix regression from r1030651: Change the name if the current name is set to...

Fix regression from r1030651: Change the name if the current name is set to the resource identifier,
to the filename of the file.

svn path=/branches/work/akonadi-ports/kdepim/akonadi/; revision=1032757
parent fb3fd21f
......@@ -83,6 +83,9 @@ class SingleFileResource : public SingleFileResourceBase
if ( mCurrentUrl.isLocalFile() )
{
if ( ( name().isEmpty() || name() == identifier() ) && !mCurrentUrl.isEmpty() )
setName( mCurrentUrl.fileName() );
// check if the file does not exist yet, if so, create it
if ( !QFile::exists( mCurrentUrl.toLocalFile() ) ) {
QFile f( mCurrentUrl.toLocalFile() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment