Don't show share dialog for anonymous users

This commit is contained in:
stojce 2014-03-27 17:56:42 +01:00
parent 9f05d71796
commit d90e15ad58

View file

@ -3715,6 +3715,11 @@ void Application::takeSnapshot() {
QString fileName = Snapshot::saveSnapshot(_glWidget, _myAvatar);
AccountManager& accountManager = AccountManager::getInstance();
if (!accountManager.isLoggedIn()) {
return;
}
if (!_snapshotShareDialog) {
_snapshotShareDialog = new SnapshotShareDialog(fileName, _glWidget);
}