Navigation Menu

Skip to content

Commit

Permalink
Default hostView to nullptr to prevent crash in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Shira-3749 committed Feb 5, 2017
1 parent a67b55d commit fb29de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UI/PreviewView.h
Expand Up @@ -24,7 +24,7 @@ namespace RstPad {

private:
bool frozen = false;
QOpenGLWidget *hostView;
QOpenGLWidget *hostView = nullptr;
QPixmap *capture = nullptr;
};

Expand Down

0 comments on commit fb29de9

Please sign in to comment.