mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
Fixed exception due to wrong init.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1773 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
6dfc75a492
commit
d8ee90e5f1
3 changed files with 9 additions and 9 deletions
|
@ -120,12 +120,13 @@ namespace GreenshotJiraPlugin {
|
|||
/// </summary>
|
||||
public virtual void Configure() {
|
||||
string url = config.Url;
|
||||
config.ShowConfigDialog();
|
||||
// check for re-login
|
||||
if (jiraConnector.isLoggedIn && !string.IsNullOrEmpty(url)) {
|
||||
if (!url.Equals(config.Url)) {
|
||||
jiraConnector.logout();
|
||||
jiraConnector.login();
|
||||
if (config.ShowConfigDialog()) {
|
||||
// check for re-login
|
||||
if (jiraConnector != null && jiraConnector.isLoggedIn && !string.IsNullOrEmpty(url)) {
|
||||
if (!url.Equals(config.Url)) {
|
||||
jiraConnector.logout();
|
||||
jiraConnector.login();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue