From b899cd8df91c69da5a03eff4ba90e1fa1cbe897c Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Fri, 14 Aug 2009 22:23:13 +0000 Subject: Only allow URL Scan while in an active terminal git-svn-id: https://connectbot.googlecode.com/svn/trunk/connectbot@398 df292f66-193f-0410-a5fc-6d59da041ff2 --- src/org/connectbot/ConsoleActivity.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/org/connectbot/ConsoleActivity.java b/src/org/connectbot/ConsoleActivity.java index 2fff48d..9223a18 100644 --- a/src/org/connectbot/ConsoleActivity.java +++ b/src/org/connectbot/ConsoleActivity.java @@ -729,6 +729,7 @@ public class ConsoleActivity extends Activity { urlscan = menu.add(R.string.console_menu_urlscan); urlscan.setAlphabeticShortcut('u'); urlscan.setIcon(android.R.drawable.ic_menu_search); + urlscan.setEnabled(activeTerminal); urlscan.setOnMenuItemClickListener(new OnMenuItemClickListener() { public boolean onMenuItemClick(MenuItem item) { final TerminalView terminalView = (TerminalView) findCurrentView(R.id.console_flip); @@ -804,6 +805,7 @@ public class ConsoleActivity extends Activity { copy.setEnabled(activeTerminal); paste.setEnabled(clipboard.hasText() && sessionOpen); portForward.setEnabled(sessionOpen && canForwardPorts); + urlscan.setEnabled(activeTerminal); resize.setEnabled(sessionOpen); return true; -- cgit v1.2.3