diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-22 12:38:10 +0300 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-03-01 18:55:56 +0300 |
commit | ba42d40df96b8835dd4663ccb9d6c3d3bf4cf921 (patch) | |
tree | 447a4b21535885f97685f015c23ff3e8ccb95ac1 /src/gui/sharedialog.h | |
parent | 8877f048356e0c2caaaba827acbd9d3e368b8b07 (diff) |
Disable sharing dialog if account state is not connected
Fixes #4185
Diffstat (limited to 'src/gui/sharedialog.h')
-rw-r--r-- | src/gui/sharedialog.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/sharedialog.h b/src/gui/sharedialog.h index abf4ab414..0a88c6963 100644 --- a/src/gui/sharedialog.h +++ b/src/gui/sharedialog.h @@ -14,7 +14,9 @@ #ifndef SHAREDIALOG_H #define SHAREDIALOG_H -#include "accountfwd.h" +#include "accountstate.h" + +#include <QPointer> #include <QString> #include <QDialog> #include <QWidget> @@ -33,7 +35,7 @@ class ShareDialog : public QDialog Q_OBJECT public: - explicit ShareDialog(AccountPtr account, + explicit ShareDialog(QPointer<AccountState> accountState, const QString &sharePath, const QString &localPath, bool resharingAllowed, @@ -45,10 +47,11 @@ public: private slots: void done( int r ); void slotThumbnailFetched(const int &statusCode, const QByteArray &reply); + void slotAccountStateChanged(int state); private: Ui::ShareDialog *_ui; - AccountPtr _account; + QPointer<AccountState> _accountState; QString _sharePath; QString _localPath; |