diff options
author | mkersten | 2006-12-14 22:20:57 +0000 |
---|---|---|
committer | mkersten | 2006-12-14 22:20:57 +0000 |
commit | d74a57c2888a67f7986bfb262d239795443e5bfc (patch) | |
tree | 1560179b96f8eda815f1818a4ceb3bfabed8258c | |
parent | 00490d0988bea79025b616b332f7c5ae5860ce02 (diff) | |
download | org.eclipse.mylyn.tasks-d74a57c2888a67f7986bfb262d239795443e5bfc.tar.gz org.eclipse.mylyn.tasks-d74a57c2888a67f7986bfb262d239795443e5bfc.tar.xz org.eclipse.mylyn.tasks-d74a57c2888a67f7986bfb262d239795443e5bfc.zip |
RESOLVED - bug 168067: Problem when importing preferences into a new workspace
https://bugs.eclipse.org/bugs/show_bug.cgi?id=168067
-rw-r--r-- | org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationManager.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationManager.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationManager.java index 0af859cf8..4a4b4cc03 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationManager.java +++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskListNotificationManager.java @@ -198,7 +198,11 @@ public class TaskListNotificationManager implements IPropertyChangeListener { public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(TaskListPreferenceConstants.NOTIFICATIONS_ENABLED)) { - if ((Boolean)event.getNewValue() == true) { + Object newValue = event.getNewValue(); + if (!(newValue instanceof Boolean)) { + // default if no preference value + startNotification(OPEN_POPUP_DELAY); + } else if ((Boolean)newValue == true) { startNotification(OPEN_POPUP_DELAY); } else { stopNotification(); |