MCPcopy Create free account
hub / github.com/KDE/okular / undoCloseTab

Method undoCloseTab

shell/shell.cpp:1092–1105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1090}
1091
1092void Shell::undoCloseTab()
1093{
1094 if (m_closedTabUrls.isEmpty()) {
1095 return;
1096 }
1097
1098 const QUrl lastTabUrl = m_closedTabUrls.takeLast();
1099
1100 if (m_closedTabUrls.isEmpty()) {
1101 m_undoCloseTab->setEnabled(false);
1102 }
1103
1104 openUrl(lastTabUrl);
1105}
1106
1107void Shell::setTabIcon(const QMimeType &mimeType)
1108{

Callers 1

Calls 1

isEmptyMethod · 0.80

Tested by 1