Switch to modeless dialog

Don't close dialog after creating torrent
Show progress bar all the time
This commit is contained in:
Chocobo1 2016-04-30 18:43:41 +08:00
parent d277696acc
commit 7de1aba092
4 changed files with 30 additions and 27 deletions

View file

@ -1075,8 +1075,10 @@ void MainWindow::on_actionCreateTorrent_triggered()
void MainWindow::createTorrentTriggered(const QString &path)
{
if (m_createTorrentDlg)
if (m_createTorrentDlg) {
m_createTorrentDlg->updateInputPath(path);
m_createTorrentDlg->setFocus();
}
else
m_createTorrentDlg = new TorrentCreatorDlg(this, path);
}