Fixed compiler error.

This commit is contained in:
leo 2015-02-02 06:00:21 +00:00
parent 22dd34dfb3
commit c6aad2c571

View file

@ -1203,7 +1203,7 @@ void lcMainWindow::SplitView(Qt::Orientation Orientation)
{
QWidget* Focus = focusWidget();
if (typeid(*Focus) != typeid(lcQGLWidget))
if (Focus->metaObject() != &lcQGLWidget::staticMetaObject)
return;
QWidget* Parent = Focus->parentWidget();
@ -1251,7 +1251,7 @@ void lcMainWindow::RemoveActiveView()
{
QWidget* Focus = focusWidget();
if (typeid(*Focus) != typeid(lcQGLWidget))
if (Focus->metaObject() != &lcQGLWidget::staticMetaObject)
return;
QWidget* Parent = Focus->parentWidget();