[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevplatform/plugins/projectmanagerview
From: Aleix Pol Gonzalez <aleixpol () gmail ! com>
Date: 2009-10-31 20:06:20
Message-ID: 1257019580.562341.16913.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1043120 by apol:
Do not rename the file in the filesystem in the action, expect the filemanager plugin \
to do so.
M +6 -12 projectmanagerviewplugin.cpp
--- trunk/KDE/kdevplatform/plugins/projectmanagerview/projectmanagerviewplugin.cpp \
#1043119:1043120 @@ -548,12 +548,9 @@
KUrl url = file->url().upUrl();
url.addPath( name );
- KIO::CopyJob* job=KIO::move(file->url(), url);
- if(!KIO::NetAccess::synchronousRun(job, window)) {
- KMessageBox::error( window, i18n("Cannot rename '%1'.", \
file->url().prettyUrl()) );
- continue;
- }
- item->project()->projectFileManager()->renameFile(file, url);
+ bool ret=item->project()->projectFileManager()->renameFile(file, \
url); + if(!ret)
+ KMessageBox::error( window, i18n("Could not rename '%1'.", \
file->url().prettyUrl()) ); }
} else if(folder) {
//Change QInputDialog->KFileSaveDialog?
@@ -562,12 +559,9 @@
KUrl url = folder->url().upUrl();
url.addPath( name );
- KIO::CopyJob* job=KIO::move(folder->url(), url);
- if(!KIO::NetAccess::synchronousRun(job, window)) {
- KMessageBox::error( window, i18n("Cannot rename '%1'.", \
folder->url().prettyUrl()) );
- continue;
- }
- item->project()->projectFileManager()->renameFolder(folder, url);
+ bool ret=item->project()->projectFileManager()->renameFolder(folder, \
url); + if(!ret)
+ KMessageBox::error( window, i18n("Could not rename '%1'.", \
folder->url().prettyUrl()) ); }
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic