aboutsummaryrefslogtreecommitdiff
path: root/src/gui/debate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/debate.cc')
-rw-r--r--src/gui/debate.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/debate.cc b/src/gui/debate.cc
index bd5a593e..ebc7cb7b 100644
--- a/src/gui/debate.cc
+++ b/src/gui/debate.cc
@@ -37,7 +37,7 @@
namespace OpenAxiom {
Debate::Debate(MainWindow* win)
- : super(win), conv(this) {
+ : QScrollArea(win), conv(this) {
setWidget(&conv);
setViewportMargins(0, 0, 0, 0);
viewport()->setAutoFillBackground(true);
@@ -51,7 +51,7 @@ namespace OpenAxiom {
Server*
Debate::server() const {
- return parent()->server();
+ return qobject_cast<MainWindow*>(parent())->server();
}
void Debate::resizeEvent(QResizeEvent* e) {