diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index 5942b54d9e..0f60bb1fbc 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -631,7 +631,13 @@ public: struct GuiApplication::Private { - Private(): language_model_(0), global_menubar_(0) {} + Private(): language_model_(0), global_menubar_(0) + { + #ifdef Q_WS_WIN + /// WMF Mime handler for Windows clipboard. + wmf_mime_ = new QWindowsMimeMetafile(); + #endif + } /// QSortFilterProxyModel * language_model_; @@ -679,7 +685,7 @@ struct GuiApplication::Private #ifdef Q_WS_WIN /// WMF Mime handler for Windows clipboard. - QWindowsMimeMetafile wmf_mime_; + QWindowsMimeMetafile * wmf_mime_; #endif };