Verified Commit 63276750 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

Fix clazy warnings

parent a3e7923f
...@@ -158,7 +158,7 @@ bool TabsModel::loadTabs() ...@@ -158,7 +158,7 @@ bool TabsModel::loadTabs()
const auto tabsStorage = QJsonDocument::fromJson(inputFile.readAll()).object(); const auto tabsStorage = QJsonDocument::fromJson(inputFile.readAll()).object();
m_tabs.clear(); m_tabs.clear();
const auto tabs = tabsStorage.value(QLatin1String("tabs")).toArray(); const auto tabs = tabsStorage.value(QLatin1String("tabs")).toArray();
for (const auto tab : tabs) { for (const auto &tab : tabs) {
m_tabs.append(TabState::fromJson(tab.toObject())); m_tabs.append(TabState::fromJson(tab.toObject()));
} }
...@@ -171,8 +171,8 @@ bool TabsModel::loadTabs() ...@@ -171,8 +171,8 @@ bool TabsModel::loadTabs()
createEmptyTab(); createEmptyTab();
} }
emit endResetModel(); endResetModel();
currentTabChanged(); emit currentTabChanged();
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment