Skip to content
Permalink
Browse files

fix instant crash on windows

  • Loading branch information
jef-n committed Sep 27, 2013
1 parent 5d1f763 commit 9d8d317842ad124a39e55fb3ead2382dbdd5d172
@@ -21,11 +21,13 @@
#include "qgsmessagelog.h"


QgsEditorWidgetRegistry QgsEditorWidgetRegistry::sInstance;
QgsEditorWidgetRegistry *QgsEditorWidgetRegistry::sInstance = 0;

QgsEditorWidgetRegistry* QgsEditorWidgetRegistry::instance()
{
return &sInstance;
if( !sInstance )
sInstance = new QgsEditorWidgetRegistry();
return sInstance;
}

QgsEditorWidgetRegistry::QgsEditorWidgetRegistry()
@@ -112,7 +112,7 @@ class GUI_EXPORT QgsEditorWidgetRegistry : public QObject

private:
QMap<QString, QgsEditorWidgetFactory*> mWidgetFactories;
static QgsEditorWidgetRegistry sInstance;
static QgsEditorWidgetRegistry *sInstance;
};


0 comments on commit 9d8d317

Please sign in to comment.
You can’t perform that action at this time.