diff --git a/src/view_win.cc b/src/view_win.cc index 10505af..747dedc 100644 --- a/src/view_win.cc +++ b/src/view_win.cc @@ -25,6 +25,7 @@ class ViewWin : public View, Awesomium::kWebViewType_Window); web_view_->set_view_listener(this); + g_active_views_.push_back(this); // Create our WinAPI Window HINSTANCE hInstance = GetModuleHandle(0); @@ -49,8 +50,6 @@ class ViewWin : public View, UpdateWindow(hwnd_); SetTimer (hwnd_, 0, 15, NULL ); - - g_active_views_.push_back(this); } virtual ~ViewWin() { @@ -170,4 +169,4 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) View* View::Create(int width, int height) { return new ViewWin(width, height); -} \ No newline at end of file +}