diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-01-03 17:11:52 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-01-06 10:46:07 -0800 |
commit | b3901aa8f90499ee2a34efdddc2463105afc53f1 (patch) | |
tree | 682ab499ed6a240c3b7664c04ec68bb66f20227e /desktop-widgets/mainwindow.h | |
parent | bb64c6bda8ac6dbe60adc9797596ed5b2131923b (diff) | |
download | subsurface-b3901aa8f90499ee2a34efdddc2463105afc53f1.tar.gz |
Enable cloud-online menu entry only if connected to cloud
Enable the menu item cloud-online only if the current file is the
cloud storage. Since this has to be checked every time the current
file is set, factor this out into the new MainWindow::setCurrentFile()
function.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mainwindow.h')
-rw-r--r-- | desktop-widgets/mainwindow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.h b/desktop-widgets/mainwindow.h index 7e5ebbebe..18b03cb61 100644 --- a/desktop-widgets/mainwindow.h +++ b/desktop-widgets/mainwindow.h @@ -198,6 +198,8 @@ private: bool askSaveChanges(); bool okToClose(QString message); void closeCurrentFile(); + void setCurrentFile(const char *f); + void updateCloudOnlineStatus(); void showProgressBar(); void hideProgressBar(); void writeSettings(); |