diff -r e2e6ef2f40de -r a99f41732cd2 src/download.cpp --- a/src/download.cpp Fri Dec 06 21:25:49 2013 +0200 +++ b/src/download.cpp Fri Dec 06 21:30:58 2013 +0200 @@ -279,21 +279,15 @@ // ============================================================================= // ----------------------------------------------------------------------------- QPushButton* PartDownloader::getButton (PartDownloader::Button i) -{ typedef QDialogButtonBox QDBB; - alias btnbox = ui->buttonBox; - - switch (i) +{ switch (i) { case Download: - { return m_downloadButton; - } + return m_downloadButton; case Abort: - { return qobject_cast (btnbox->button (QDBB::Abort)); - } + return qobject_cast (ui->buttonBox->button (QDialogButtonBox::Abort)); case Close: - { return qobject_cast (btnbox->button (QDBB::Close)); - } + return qobject_cast (ui->buttonBox->button (QDialogButtonBox::Close)); } return null;