Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
rryan committed May 23, 2016
1 parent 5682c72 commit 4ff946b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/widget/wmainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,10 @@ void WMainWindow::finalize() {
t.start();

// Save the current window state (position, maximized, etc)
m_pSettingsManager->settings()->set(ConfigKey("[MainWindow]", "geometry"),
UserSettingsPointer pSettings = m_pCore->settingsManager()->settings();
pSettings->set(ConfigKey("[MainWindow]", "geometry"),
QString(saveGeometry().toBase64()));
m_pSettingsManager->settings()->set(ConfigKey("[MainWindow]", "state"),
pSettings->set(ConfigKey("[MainWindow]", "state"),
QString(saveState().toBase64()));

setCentralWidget(NULL);
Expand Down Expand Up @@ -358,9 +359,10 @@ void WMainWindow::initializeWindow() {
m_pMenuBar->setPalette(Pal);

// Restore the current window state (position, maximized, etc)
restoreGeometry(QByteArray::fromBase64(m_pSettingsManager->settings()->getValueString(
UserSettingsPointer pSettings = m_pCore->settingsManager()->settings();
restoreGeometry(QByteArray::fromBase64(pSettings->getValueString(
ConfigKey("[MainWindow]", "geometry")).toUtf8()));
restoreState(QByteArray::fromBase64(m_pSettingsManager->settings()->getValueString(
restoreState(QByteArray::fromBase64(pSettings->getValueString(
ConfigKey("[MainWindow]", "state")).toUtf8()));

setWindowIcon(QIcon(":/images/ic_mixxx_window.png"));
Expand Down

0 comments on commit 4ff946b

Please sign in to comment.