summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-05-12 17:20:09 +0200
committerArno <am@disconnect.de>2010-05-12 17:20:09 +0200
commit11187b64f4473cf8b7993e323e0f6d0294f6609e (patch)
treeeaebbf826253b910e75caf6e9479782c9b6e2b2e /shemov.cpp
parentce5cb5bc57ae95ca920b0a8b4715a201a491d897 (diff)
downloadSheMov-11187b64f4473cf8b7993e323e0f6d0294f6609e.tar.gz
SheMov-11187b64f4473cf8b7993e323e0f6d0294f6609e.tar.bz2
SheMov-11187b64f4473cf8b7993e323e0f6d0294f6609e.zip
Solved issue with mRefreshA in FilesystemWidget
FilesystemWidget needs a pointer to the QAction triggering a refresh to disable it under certain circumstances. The current solution was to search the actions() of a child widget for a specific string in QAction::data(). Don't like it. Now SheMov sets the refresh action via a member function of FilesystemWidget.
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/shemov.cpp b/shemov.cpp
index f7439e1..f98272f 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -280,7 +280,7 @@ void SheMov::createActions(){
connect(mDeleteFilesA, SIGNAL(triggered()), mFSWidget, SLOT(deleteFiles()));
mRefreshA = new QAction(tr("Refresh"), this);
mRefreshA->setShortcut(Qt::Key_F4);
- mRefreshA->setData("RE");
+ mFSWidget->setRefreshAction(mRefreshA);
connect(mRefreshA, SIGNAL(triggered()), mFSWidget->fileView(), SLOT(refresh()));
connect(mRefreshA, SIGNAL(triggered()), this, SLOT(setFsFree()));
mCopyA = new QAction(tr("Copy file(s)..."), this);