mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
Remove useless cast
Added missing include that caused misleading error message
This commit is contained in:
parent
3b05f8b4b4
commit
4efeb66b73
1 changed files with 2 additions and 1 deletions
|
@ -47,6 +47,7 @@
|
||||||
#include "headlessloader.h"
|
#include "headlessloader.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <QPushButton>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QLocalSocket>
|
#include <QLocalSocket>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -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.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.setWindowTitle(tr("Legal notice"));
|
||||||
msgBox.addButton(tr("Cancel"), QMessageBox::RejectRole);
|
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();
|
msgBox.exec();
|
||||||
if(msgBox.clickedButton() == agree_button) {
|
if(msgBox.clickedButton() == agree_button) {
|
||||||
// Save the answer
|
// Save the answer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue