summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-06-02 11:24:06 +0200
committerArno <am@disconnect.de>2013-06-02 11:24:06 +0200
commit721fd40222440c6e8a81f4379f894d8908772a8a (patch)
treea7b54efd2ec9168efb4c7ae8e49851430b84a1b6 /shemov.cpp
parent459f58c57bfa1021783134b11853e8e4140055f3 (diff)
downloadSheMov-721fd40222440c6e8a81f4379f894d8908772a8a.tar.gz
SheMov-721fd40222440c6e8a81f4379f894d8908772a8a.tar.bz2
SheMov-721fd40222440c6e8a81f4379f894d8908772a8a.zip
Implement Rename
Rename items: spits out an error message if the new item already exists.
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 0144a7d..e0425fb 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -737,6 +737,11 @@ void SheMov::createActions(){
/* picView(er) END Actions! */
+ // ArchiveView actions
+ mArchiveViewRenameA = new QAction(tr("Rename..."), this);
+ connect(mArchiveViewRenameA, SIGNAL(triggered()), mArchive->archiveTree(), SLOT(rename()));
+ mArchive->archiveTree()->addAction(mArchiveViewRenameA);
+
//don't add actions with checkable(true) unless you know what you're doing!
mPicActionGroup = new QActionGroup(this);
mPicActionGroup->addAction(mPWDeletePicFromA);