Changeset 31 for gui/main_window.cpp


Ignore:
Timestamp:
01/06/08 13:39:07 (4 years ago)
Author:
roeland
Message:

No more segfault when no config supplied

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/main_window.cpp

    r29 r31  
    22#include <QtGui> 
    33#include <QIcon> 
     4#include <QDebug> 
    45 
    56#include "main_window.h" 
     
    89MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) 
    910{ 
     11    QSettings settings; 
    1012    setupUi(this); 
    1113 
    1214    slidingVolume = false; 
     15 
     16    //Tray Icon stuf 
     17    setupTrayIcon(); 
     18    if (settings.value("systemtray").toBool()) { 
     19        trayIcon->show(); 
     20    } 
    1321 
    1422    // Start connection thread 
     
    5866    // Timer 
    5967    connect(&statusTimer, SIGNAL(timeout()), &mpd, SLOT(getStatus())); 
    60  
    61     //Tray icon 
    62     setupTrayIcon(); 
    63     if (settings.value("systemtray").toBool()) { 
    64         trayIcon->show(); 
    65     } 
    6668 
    6769    mpd.getStatus(); 
Note: See TracChangeset for help on using the changeset viewer.