From 1b8b1120482e9426da68ea08cb23afca85d4b97d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 12 Jul 2017 08:25:40 -0700 Subject: Fix slot handling in Photos tab This clearly has never been tested, never worked. Oh well. Fixes #478 Signed-off-by: Dirk Hohndel --- desktop-widgets/tab-widgets/TabDivePhotos.cpp | 8 ++++---- 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; }; -- cgit v1.2.3-70-g09d2