Skip to content

Commit

Permalink
correclty activate new tab when active tab is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Milikhin committed Jul 14, 2021
1 parent f60ea19 commit a976778
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ubports-seabass/po/seabass2.mikhael.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: seabass2.mikhael\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-07-10 14:17+0000\n"
"POT-Creation-Date: 2021-07-14 20:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -44,23 +44,23 @@ msgid ""
"Unable to write the file. Please ensure that you have write access to %1"
msgstr ""

#: ../qml/Main.qml:276
#: ../qml/Main.qml:283
msgid "Creating a project failed. See build output for details"
msgstr ""

#: ../qml/Main.qml:321
#: ../qml/Main.qml:328
msgid "Creating a Libertine container failed. See build output for details"
msgstr ""

#: ../qml/Main.qml:331
#: ../qml/Main.qml:338
msgid "Update failed. See build output for details"
msgstr ""

#: ../qml/Main.qml:347
#: ../qml/Main.qml:354
msgid "Build (%1) failed. See build output for details"
msgstr ""

#: ../qml/Main.qml:357
#: ../qml/Main.qml:364
msgid "Build and run (%1) failed. See build output for details"
msgstr ""

Expand Down
7 changes: 7 additions & 0 deletions ubports-seabass/qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ ApplicationWindow {
}
onTabClosed: function(tabId) {
api.closeFile(tabId)

// display current tab
if (!count) {
return
}
var currentFile = get(tabBar.currentIndex)
api.openFile(currentFile.filePath)
}
onCountChanged: {
if (!count) {
Expand Down

0 comments on commit a976778

Please sign in to comment.