MacPorts-installed Bitcoin Core's version v0.12.1.0g9779e1e crashes on OSX when trying to open the debug window while the app is verifying the blocks at startup.

void detectShutdown();
    
    void showProgress(const QString &title, int nProgress);
};
class UnitDisplayStatusBarControl : public QLabel
{
    Q_OBJECT
public:
    explicit UnitDisplayStatusBarControl(const PlatformStyle *platformStyle);
    
    void setOptionsModel(OptionsModel *optionsModel);
protected:
    
    void mousePressEvent(QMouseEvent *event);
private:
    OptionsModel *optionsModel;
    QMenu* menu;
    
    void onDisplayUnitsClicked(const QPoint& point);
    
    void createContextMenu();
private Q_SLOTS:
    
    void updateDisplayUnit(int newUnits);
    
    void onMenuSelection(QAction* action);
};
#endif