mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-30 20:28:05 -06:00
Set dialog properties at the caller site
Redundant `setModal(true)` are removed since the dialog is already opened via `open()`.
This commit is contained in:
@@ -48,7 +48,7 @@ StatsDialog::StatsDialog(QWidget *parent)
|
||||
, m_storeDialogSize(SETTINGS_KEY(u"Size"_qs))
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
connect(m_ui->buttonBox, &QDialogButtonBox::accepted, this, &StatsDialog::close);
|
||||
|
||||
update();
|
||||
@@ -61,7 +61,6 @@ StatsDialog::StatsDialog(QWidget *parent)
|
||||
#endif
|
||||
|
||||
resize(m_storeDialogSize);
|
||||
show();
|
||||
}
|
||||
|
||||
StatsDialog::~StatsDialog()
|
||||
|
||||
Reference in New Issue
Block a user