Switch to unified view

a/GUI/mainw/mainw.cpp b/GUI/mainw/mainw.cpp
...
...
59
}
59
}
60
60
61
#endif
61
#endif
62
62
63
GUI_Player::GUI_Player(Application *upapp, QWidget *parent) :
63
GUI_Player::GUI_Player(Application *upapp, QWidget *parent) :
64
    QMainWindow(parent), m_upapp(upapp), ui(new Ui::Upplay), m_covertempfile(0)
64
    QMainWindow(parent), m_upapp(upapp), ui(new Ui::Upplay), m_covertempfile(0),
65
    m_currentCoverReply(0)
65
{
66
{
66
    ui->setupUi(this);
67
    ui->setupUi(this);
67
68
68
    ui->action_viewLibrary->setText(tr("&Library"));
69
    ui->action_viewLibrary->setText(tr("&Library"));
69
    ui->action_Fullscreen->setShortcut(QKeySequence("F11"));
70
    ui->action_Fullscreen->setShortcut(QKeySequence("F11"));
...
...
172
    this->setWindowTitle(QString("Upplay - ") + md.title);
173
    this->setWindowTitle(QString("Upplay - ") + md.title);
173
174
174
    if (!md.albumArtURI.isEmpty()) {
175
    if (!md.albumArtURI.isEmpty()) {
175
        fetch_cover(md.albumArtURI);
176
        fetch_cover(md.albumArtURI);
176
    } else {
177
    } else {
177
        ui->player_w->albumCover->setIcon(
178
        m_currentCoverReply = 0;
178
            QIcon(Helper::getIconPath("logo.png")));
179
        sl_no_cover_available();
179
    }
180
    }
180
181
181
    ui->player_w->progress()->setEnabled(true);
182
    ui->player_w->progress()->setEnabled(true);
182
183
183
    m_trayIcon->set_enable_play(true);
184
    m_trayIcon->set_enable_play(true);
...
...
190
}
191
}
191
192
192
void GUI_Player::fetch_cover(const QString& URI)
193
void GUI_Player::fetch_cover(const QString& URI)
193
{
194
{
194
    if (!m_netmanager) {
195
    if (!m_netmanager) {
196
        m_currentCoverReply = 0;
195
        return;
197
        return;
196
    }
198
    }
197
    m_netmanager->get(QNetworkRequest(QUrl(URI)));
199
    m_currentCoverReply = m_netmanager->get(QNetworkRequest(QUrl(URI)));
198
}
200
}
199
201
200
void GUI_Player::setStyle(int style)
202
void GUI_Player::setStyle(int style)
201
{
203
{
202
204