Fixed DestinationPicker "issue", the context menu was still shown if the e.g. Jira upload window was shown. Also fixed an issue with the jira upload window that the last used jira was displayed but the upload button was disabled.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1619 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-02-02 08:57:37 +00:00
commit 8198c69d68
2 changed files with 9 additions and 6 deletions

View file

@ -53,9 +53,8 @@ namespace GreenshotJiraPlugin {
} catch (Exception e) {
MessageBox.Show(language.GetFormattedString(LangKey.login_error, e.Message));
}
updateForm();
uploadButton.Enabled = false;
updateForm();
}
private void initializeComponentText() {
@ -74,7 +73,11 @@ namespace GreenshotJiraPlugin {
jiraFilterBox.SelectedIndex = 0;
}
changeModus(true);
jiraKey.Text = config.LastUsedJira;
selectedIssue = jiraConnector.getIssue(config.LastUsedJira);
if (selectedIssue != null) {
jiraKey.Text = config.LastUsedJira;
uploadButton.Enabled = true;
}
}
}
@ -199,7 +202,7 @@ namespace GreenshotJiraPlugin {
// Perform the sort with these new sort options.
this.jiraListView.Sort();
}
void JiraKeyTextChanged(object sender, EventArgs e) {
string jiranumber = jiraKey.Text;
uploadButton.Enabled = false;