summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-27 11:11:49 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-27 11:11:49 +0200
commit34ccc7b4a7a503999a225d547210abba5740b485 (patch)
tree9df5693f7b87a434f461ed9e7daf600cf34e1b93
parentfd4ae0d25b1cc55c948785a2844cf62bb439742a (diff)
downloadserenity-34ccc7b4a7a503999a225d547210abba5740b485.zip
ProcessManager: Oops, the process-specific view should not be global.
It should only be visible when we have the process table open.
-rw-r--r--Applications/ProcessManager/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Applications/ProcessManager/main.cpp b/Applications/ProcessManager/main.cpp
index f5efa1bce6..24c2987d18 100644
--- a/Applications/ProcessManager/main.cpp
+++ b/Applications/ProcessManager/main.cpp
@@ -28,12 +28,12 @@ int main(int argc, char** argv)
keeper->set_background_color(Color::WarmGray);
keeper->layout()->set_margins({ 4, 4, 4, 4 });
- auto* splitter = new GSplitter(Orientation::Vertical, keeper);
+ auto* tabwidget = new GTabWidget(keeper);
- auto* tabwidget = new GTabWidget(splitter);
+ auto* process_container_splitter = new GSplitter(Orientation::Vertical, nullptr);
+ tabwidget->add_widget("Processes", process_container_splitter);
- auto* process_table_container = new GWidget(nullptr);
- tabwidget->add_widget("Processes", process_table_container);
+ auto* process_table_container = new GWidget(process_container_splitter);
auto* graphs_container = new GWidget;
graphs_container->set_fill_with_background_color(true);
@@ -153,7 +153,7 @@ int main(int argc, char** argv)
app.set_menubar(move(menubar));
- auto* process_tab_widget = new GTabWidget(splitter);
+ auto* process_tab_widget = new GTabWidget(process_container_splitter);
auto* stacks_widget = new ProcessStacksWidget(nullptr);
process_tab_widget->add_widget("Stacks", stacks_widget);