summaryrefslogtreecommitdiffstats
path: root/gui/pages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/pages.cpp')
-rw-r--r--gui/pages.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/gui/pages.cpp b/gui/pages.cpp
index 72ffda3d5..3632cc311 100644
--- a/gui/pages.cpp
+++ b/gui/pages.cpp
@@ -1110,6 +1110,16 @@ int PageManager::SwitchToConsole(void)
return 0;
}
+int PageManager::EndConsole(void)
+{
+ if (mCurrentSet && mBaseSet) {
+ delete mCurrentSet;
+ mCurrentSet = mBaseSet;
+ return 0;
+ }
+ return -1;
+}
+
int PageManager::IsCurrentPage(Page* page)
{
return (mCurrentSet ? mCurrentSet->IsCurrentPage(page) : 0);