changeset 110:487ba392d38a

Open options tab in a new window
author Fox
date Thu, 15 Jun 2023 00:09:23 +0200
parents c5bd33a186fa
children b93c6236c6cb
files src/junotu/TabSimpleSearch.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
diff -r c5bd33a186fa -r 487ba392d38a src/junotu/TabSimpleSearch.java
--- a/src/junotu/TabSimpleSearch.java	Mon May 29 01:36:38 2023 +0200
+++ b/src/junotu/TabSimpleSearch.java	Thu Jun 15 00:09:23 2023 +0200
@@ -230,8 +230,7 @@
 		} else if( source == context ) {
 			menu.show( (Component)source, 0, 0 );
 		} else if( source == menu_options ) {
-			Window window = (Window)this.getTopLevelAncestor();
-			window.tabSwitch( Tab.OPTIONS );
+			Main.windowAdd( Tab.OPTIONS );
 		} else if( source == menu_calendar ) {
 			Window window = (Window)this.getTopLevelAncestor();
 			window.tabSwitch( Tab.CALENDAR_BOARD );