| 1090 | } |
| 1091 | |
| 1092 | void 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 | |
| 1107 | void Shell::setTabIcon(const QMimeType &mimeType) |
| 1108 | { |