summaryrefslogtreecommitdiffstats
path: root/gui/ConsoleWindow.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-02-07 10:43:09 +0100
committerPetr Mrázek <peterix@gmail.com>2015-04-12 20:57:17 +0200
commit4e94de413ba60a1da91715a41c8ba8caa8474728 (patch)
tree9907e1ade674ab98fea5719f7e2da5ca0ec35464 /gui/ConsoleWindow.cpp
parent141e0a02a0a0c4bbc4cc2e900560db5048366104 (diff)
downloadMultiMC-4e94de413ba60a1da91715a41c8ba8caa8474728.tar
MultiMC-4e94de413ba60a1da91715a41c8ba8caa8474728.tar.gz
MultiMC-4e94de413ba60a1da91715a41c8ba8caa8474728.tar.lz
MultiMC-4e94de413ba60a1da91715a41c8ba8caa8474728.tar.xz
MultiMC-4e94de413ba60a1da91715a41c8ba8caa8474728.zip
SCRATCH no more gui includes in logic
Diffstat (limited to 'gui/ConsoleWindow.cpp')
-rw-r--r--gui/ConsoleWindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/ConsoleWindow.cpp b/gui/ConsoleWindow.cpp
index 1f7c63cf..a9c1f455 100644
--- a/gui/ConsoleWindow.cpp
+++ b/gui/ConsoleWindow.cpp
@@ -29,6 +29,7 @@
#include <gui/dialogs/ProgressDialog.h>
#include "widgets/PageContainer.h"
#include "pages/LogPage.h"
+#include "InstancePageProvider.h"
#include "logic/icons/IconList.h"
@@ -71,8 +72,9 @@ ConsoleWindow::ConsoleWindow(BaseProcess *process, QWidget *parent)
// Add page container
{
auto mainLayout = new QVBoxLayout;
- auto provider = std::dynamic_pointer_cast<BasePageProvider>(m_proc->instance());
- auto proxy_provider = std::make_shared<LogPageProvider>(provider, new LogPage(m_proc));
+ auto provider = std::make_shared<InstancePageProvider>(m_proc->instance());
+ auto baseprovider = std::dynamic_pointer_cast<BasePageProvider>(provider);
+ auto proxy_provider = std::make_shared<LogPageProvider>(baseprovider, new LogPage(m_proc));
m_container = new PageContainer(proxy_provider, "console", this);
mainLayout->addWidget(m_container);
mainLayout->setSpacing(0);