From 4efeb66b73bd8e1c61e934870666a368ed67973c Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 3 Mar 2010 15:23:34 +0000 Subject: [PATCH] Remove useless cast Added missing include that caused misleading error message --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index a972c9649..b75f8718a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -47,6 +47,7 @@ #include "headlessloader.h" #endif +#include #include #include #include @@ -107,7 +108,7 @@ public: msgBox.setText(tr("qBittorrent is a file sharing program. When you run a torrent, its data will be made available to others by means of upload. Any content you share is your sole responsibility.\n\nNo further notices will be issued.")); msgBox.setWindowTitle(tr("Legal notice")); msgBox.addButton(tr("Cancel"), QMessageBox::RejectRole); - QAbstractButton *agree_button =(QAbstractButton*)msgBox.addButton(tr("I Agree"), QMessageBox::AcceptRole); + QAbstractButton *agree_button = msgBox.addButton(tr("I Agree"), QMessageBox::AcceptRole); msgBox.exec(); if(msgBox.clickedButton() == agree_button) { // Save the answer