aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorRyan Hansberry <rhansby@gmail.com>2015-10-14 15:22:32 -0700
committerRyan Hansberry <rhansby@gmail.com>2015-10-15 09:33:28 -0700
commit5c893adf92705433b434bdc98f5f249555eef625 (patch)
tree5a94b850925bdb93535129c3348ba72056b49566 /app
parent783c975a9d532cfcd1177b1cac0322973e576b22 (diff)
downloadconnectbot-5c893adf92705433b434bdc98f5f249555eef625.tar.gz
connectbot-5c893adf92705433b434bdc98f5f249555eef625.tar.bz2
connectbot-5c893adf92705433b434bdc98f5f249555eef625.zip
Fix paste button being permanently disabled because SSH session was not yet open.
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/org/connectbot/ConsoleActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/org/connectbot/ConsoleActivity.java b/app/src/main/java/org/connectbot/ConsoleActivity.java
index 7241e0e..3aebd41 100644
--- a/app/src/main/java/org/connectbot/ConsoleActivity.java
+++ b/app/src/main/java/org/connectbot/ConsoleActivity.java
@@ -787,7 +787,7 @@ public class ConsoleActivity extends AppCompatActivity implements BridgeDisconne
paste.setAlphabeticShortcut('v');
MenuItemCompat.setShowAsAction(paste, MenuItemCompat.SHOW_AS_ACTION_IF_ROOM);
paste.setIcon(R.drawable.ic_action_paste);
- paste.setEnabled(sessionOpen);
+ paste.setEnabled(activeTerminal);
paste.setOnMenuItemClickListener(new OnMenuItemClickListener() {
public boolean onMenuItemClick(MenuItem item) {
pasteIntoTerminal();
@@ -905,7 +905,7 @@ public class ConsoleActivity extends AppCompatActivity implements BridgeDisconne
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) {
copy.setEnabled(activeTerminal);
}
- paste.setEnabled(sessionOpen);
+ paste.setEnabled(activeTerminal);
portForward.setEnabled(sessionOpen && canForwardPorts);
urlscan.setEnabled(activeTerminal);
resize.setEnabled(sessionOpen);