Skip to content
Permalink
Browse files

fix instant crash on windows again (followup dc3b56a and 9d8d317)

  • Loading branch information
jef-n committed Oct 11, 2013
1 parent 58b7199 commit 9e6e62d9c8606f4de825c75df92d58a2918adc82
@@ -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 9e6e62d

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