Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-01-28 00:12:05 +0000
committerspingel2009-01-28 00:12:05 +0000
commit5e81faee687fc305644fa8003d54912cc2b570ac (patch)
tree1f247c0a868834a3a7e86cd02440da091e554790
parent8624eeda4325c93aa2840559d1b6d0cc558c4876 (diff)
downloadorg.eclipse.mylyn.tasks-5e81faee687fc305644fa8003d54912cc2b570ac.tar.gz
org.eclipse.mylyn.tasks-5e81faee687fc305644fa8003d54912cc2b570ac.tar.xz
org.eclipse.mylyn.tasks-5e81faee687fc305644fa8003d54912cc2b570ac.zip
NEW - bug 262107: [dual monitors] ensure Task Search dialog isn't restored to invalid display bounds
https://bugs.eclipse.org/bugs/show_bug.cgi?id=262107
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
index 175d6a3ee..719aa056c 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
@@ -1775,6 +1775,10 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
}
private void saveBounds(Rectangle bounds) {
+ if (inSearchContainer()) {
+ return;
+ }
+
IDialogSettings settings = getDialogSettings();
IDialogSettings dialogBounds = settings.getSection(DIALOG_BOUNDS_KEY);
if (dialogBounds == null) {
@@ -1788,6 +1792,10 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
}
private void restoreBounds() {
+ if (inSearchContainer()) {
+ return;
+ }
+
IDialogSettings settings = getDialogSettings();
IDialogSettings dialogBounds = settings.getSection(DIALOG_BOUNDS_KEY);
Shell shell = getShell();

Back to the top