summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/app.c b/src/app.c
index d259f541..3f0ec2c4 100644
--- a/src/app.c
+++ b/src/app.c
@@ -2153,7 +2153,7 @@ iBool handleCommand_App(const char *cmd) {
2153 iWidget *tabs = findWidget_App("doctabs"); 2153 iWidget *tabs = findWidget_App("doctabs");
2154#if defined (iPlatformAppleMobile) 2154#if defined (iPlatformAppleMobile)
2155 /* Can't close the last on mobile. */ 2155 /* Can't close the last on mobile. */
2156 if (tabCount_Widget(tabs) == 1) { 2156 if (tabCount_Widget(tabs) == 1 && numRoots_Window(get_Window()) == 1) {
2157 postCommand_App("navigate.home"); 2157 postCommand_App("navigate.home");
2158 return iTrue; 2158 return iTrue;
2159 } 2159 }
@@ -2331,7 +2331,9 @@ iBool handleCommand_App(const char *cmd) {
2331 bookmarkTitle_DocumentWidget(doc), 2331 bookmarkTitle_DocumentWidget(doc),
2332 siteIcon_GmDocument(document_DocumentWidget(doc))); 2332 siteIcon_GmDocument(document_DocumentWidget(doc)));
2333 } 2333 }
2334 postCommand_App("focus.set id:bmed.title"); 2334 if (deviceType_App() == desktop_AppDeviceType) {
2335 postCommand_App("focus.set id:bmed.title");
2336 }
2335 return iTrue; 2337 return iTrue;
2336 } 2338 }
2337 else if (equal_Command(cmd, "feeds.subscribe")) { 2339 else if (equal_Command(cmd, "feeds.subscribe")) {