diff options
-rw-r--r-- | views/widget/native_widget_gtk.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/widget/native_widget_gtk.cc b/views/widget/native_widget_gtk.cc index 572c53a..b24412c 100644 --- a/views/widget/native_widget_gtk.cc +++ b/views/widget/native_widget_gtk.cc @@ -2144,7 +2144,7 @@ namespace internal { // static NativeWidgetPrivate* NativeWidgetPrivate::CreateNativeWidget( NativeWidgetDelegate* delegate) { - if (Widget::IsPureViews() && + if (Widget::IsPureViews() && ViewsDelegate::views_delegate && ViewsDelegate::views_delegate->GetDefaultParentView()) { return new NativeWidgetViews(delegate); } |