mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Edit bookmarks: do not try to show disposed popup
This commit is contained in:
+6
-4
@@ -56,10 +56,12 @@ class EditBookmarkDescriptionAction extends DumbAwareAction {
|
||||
|
||||
BookmarkManager.getInstance(myProject).editDescription(bookmark);
|
||||
|
||||
myPopup.setUiVisible(true);
|
||||
final JComponent content = myPopup.getContent();
|
||||
if (content != null) {
|
||||
myPopup.setSize(content.getPreferredSize());
|
||||
if (myPopup != null && !myPopup.isDisposed()) {
|
||||
myPopup.setUiVisible(true);
|
||||
final JComponent content = myPopup.getContent();
|
||||
if (content != null) {
|
||||
myPopup.setSize(content.getPreferredSize());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user