aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/TabDivePhotos.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-12 08:25:40 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-12 08:25:58 -0700
commit1b8b1120482e9426da68ea08cb23afca85d4b97d (patch)
tree76a83ea285643c623d737334ad6a951cff35d602 /desktop-widgets/tab-widgets/TabDivePhotos.cpp
parentb7b2e813ad21cb4c8d59a7a7940110c346e3bead (diff)
downloadsubsurface-1b8b1120482e9426da68ea08cb23afca85d4b97d.tar.gz
Fix slot handling in Photos tab
This clearly has never been tested, never worked. Oh well. Fixes #478 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/tab-widgets/TabDivePhotos.cpp')
-rw-r--r--desktop-widgets/tab-widgets/TabDivePhotos.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop-widgets/tab-widgets/TabDivePhotos.cpp b/desktop-widgets/tab-widgets/TabDivePhotos.cpp
index 143c3a02a..7d6223184 100644
--- a/desktop-widgets/tab-widgets/TabDivePhotos.cpp
+++ b/desktop-widgets/tab-widgets/TabDivePhotos.cpp
@@ -43,11 +43,11 @@ void TabDivePhotos::clear()
void TabDivePhotos::contextMenuEvent(QContextMenuEvent *event)
{
QMenu popup(this);
- popup.addAction(tr("Load image(s) from file(s)"), this, SLOT(addPhotosFromFile));
- popup.addAction(tr("Load image(s) from web"), this, SLOT(addPhotosFromURL));
+ popup.addAction(tr("Load image(s) from file(s)"), this, SLOT(addPhotosFromFile()));
+ popup.addAction(tr("Load image(s) from web"), this, SLOT(addPhotosFromURL()));
popup.addSeparator();
- popup.addAction(tr("Delete selected images"), this, SLOT(removeSelectedPhotos));
- popup.addAction(tr("Delete all images"), this, SLOT(removeAllPhotos));
+ popup.addAction(tr("Delete selected images"), this, SLOT(removeSelectedPhotos()));
+ popup.addAction(tr("Delete all images"), this, SLOT(removeAllPhotos()));
popup.exec(event->globalPos());
event->accept();
}