Some Win32 improvements

This commit is contained in:
Christophe Dumez 2010-05-30 21:45:55 +00:00
parent bb606e0b2f
commit 5c4450f3cd
5 changed files with 47 additions and 0 deletions

View file

@ -218,6 +218,15 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
}
qDebug("GUI Built");
#ifdef Q_WS_WIN
if(!Preferences::isFileAssocOk()) {
if(QMessageBox::question(0, tr("Torrent file association"),
tr("qBittorrent is not the default application to open torrent files.\nDo you want to associate qBittorrent to torrent files?"),
QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes) == QMessageBox::Yes) {
Preferences::setFileAssoc();
}
}
#endif
}
// Destructor