diff --git a/gui.cpp b/gui.cpp index 2e39bb0..44bc4c5 100644 --- a/gui.cpp +++ b/gui.cpp @@ -145,6 +145,8 @@ GuiView *Gui::popView() free(this->views); this->views = NULL; this->n_views = 0; + /* Deactivate when no views are left */ + this->is_active = false; return NULL; }