I was testing from commit be50469217bd775c4305938634c32e5932f47841 and noticed that the "out of sync" overlay went away correctly after mining blocks, but then after restarting with --reindex this black bar shows up after the overlay is hidden. I've only tested this in regtest mode. I'm not sure that the issue is related to the overlay but it seems to show up right when the overlay is hidden. 

![Screenshot_20191026_171200](https://user-images.githubusercontent.com/8107318/67627655-16153100-f815-11e9-967a-d5ea0a254965.png)


On another system:


Before reindex
![Screenshot_20191026_174635](https://user-images.githubusercontent.com/8107318/67627854-3515c200-f819-11e9-87b2-c6f8172480fd.png)


After reindex 
![Screenshot_20191026_174657](https://user-images.githubusercontent.com/8107318/67627855-38a94900-f819-11e9-87c1-c5296c1a2636.png)

}
class ModalOverlay : public QWidget
{
    Q_OBJECT
public:
    explicit ModalOverlay(bool enable_wallet, QWidget *parent);
    ~ModalOverlay();
public Q_SLOTS:
    void tipUpdate(int count, const QDateTime& blockDate, double nVerificationProgress);
    void setKnownBestHeight(int count, const QDateTime& blockDate);
    void toggleVisibility();
    
    void showHide(bool hide = false, bool userRequested = false);
    void closeClicked();
    bool isLayerVisible() const { return layerIsVisible; }
protected:
    bool eventFilter(QObject * obj, QEvent * ev) override;
    bool event(QEvent* ev) override;
private:
    Ui::ModalOverlay *ui;
    int bestHeaderHeight; 
    QDateTime bestHeaderDate;
    QVector<QPair<qint64, double> > blockProcessTime;
    bool layerIsVisible;
    bool userClosed;
    void UpdateHeaderSyncLabel();
};
#endif