Skip to content

Commit

Permalink
don't logout user if a score has a source, but is private and doesn't…
Browse files Browse the repository at this point in the history
… belong to user
  • Loading branch information
lasconic committed Jul 15, 2015
1 parent 3577a2d commit 1dd5e2f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mscore/loginmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ void LoginManager::onAuthorizedRequestDone()
QMessageBox::critical(0, tr("Network error"), tr("Please check your Internet connection"));
else if (_oauthManager->lastError() == KQOAuthManager::ContentOperationNotPermittedError)
QMessageBox::critical(0, tr("Please upgrade"), tr("Your MuseScore version is too old to use this feature.<br/> <a href=\"%1\">Please upgrade first</a>.").arg("http://musescore.org"));
else if (_oauthManager->lastError() == KQOAuthManager::RequestUnauthorized){
logout();
mscore->showLoginDialog();
}
// don't do that, it will logout user if score is private and already known
//else if (_oauthManager->lastError() == KQOAuthManager::RequestUnauthorized){
// logout();
// mscore->showLoginDialog();
// }
}

/*------- TRY LOGIN ROUTINES ----------------------------*/
Expand Down

0 comments on commit 1dd5e2f

Please sign in to comment.