diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-07-12 08:25:40 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-12 08:25:58 -0700 |
commit | 1b8b1120482e9426da68ea08cb23afca85d4b97d (patch) | |
tree | 76a83ea285643c623d737334ad6a951cff35d602 | |
parent | b7b2e813ad21cb4c8d59a7a7940110c346e3bead (diff) | |
download | subsurface-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>
-rw-r--r-- | desktop-widgets/tab-widgets/TabDivePhotos.cpp | 8 | ||||
-rw-r--r-- | desktop-widgets/tab-widgets/TabDivePhotos.h | 3 |
2 files changed, 6 insertions, 5 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(); } diff --git a/desktop-widgets/tab-widgets/TabDivePhotos.h b/desktop-widgets/tab-widgets/TabDivePhotos.h index 97f6f86d6..9b711595c 100644 --- a/desktop-widgets/tab-widgets/TabDivePhotos.h +++ b/desktop-widgets/tab-widgets/TabDivePhotos.h @@ -21,12 +21,13 @@ public: protected: void contextMenuEvent(QContextMenuEvent *ev) override; -private: +private slots: void addPhotosFromFile(); void addPhotosFromURL(); void removeAllPhotos(); void removeSelectedPhotos(); +private: Ui::TabDivePhotos *ui; DivePictureModel *divePictureModel; }; |