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>
This commit is contained in:
Berthold Stoeger 2018-01-03 17:11:52 +01:00 committed by Dirk Hohndel
parent bb64c6bda8
commit b3901aa8f9
2 changed files with 23 additions and 14 deletions

View file

@ -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();