When you open wallets with exotic names, i.e `🦹🏿‍♂️` (Emoji Version 11), via the "Open Wallet" menu, the opening wallet dialog never closes, even after the wallet has finished loading.

![screen shot 2019-02-21 at 2 34 06 pm](https://user-images.githubusercontent.com/863730/53148554-012d3180-35e6-11e9-8a94-62c5fb023d40.png)

{
    QMainWindow::changeEvent(e);
#ifndef Q_OS_MAC 
    if(e->type() == QEvent::WindowStateChange)
    {
        if(clientModel && clientModel->getOptionsModel() && clientModel->getOptionsModel()->getMinimizeToTray())
        {
            QWindowStateChangeEvent *wsevt = static_cast<QWindowStateChangeEvent*>(e);
            if(!(wsevt->oldState() & Qt::WindowMinimized) && isMinimized())
            {
                QTimer::singleShot(0, this, &BitcoinGUI::hide);
                e->ignore();
            }
            else if((wsevt->oldState() & Qt::WindowMinimized) && !isMinimized())
            {
                QTimer::singleShot(0, this, &BitcoinGUI::show);
                e->ignore();
            }
        }
    }
#endif
}
void BitcoinGUI::closeEvent(QCloseEvent *event)