diff options
Diffstat (limited to 'examples/network/torrent/addtorrentdialog.cpp')
-rw-r--r-- | examples/network/torrent/addtorrentdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/torrent/addtorrentdialog.cpp b/examples/network/torrent/addtorrentdialog.cpp index fac75ba465..d168633df3 100644 --- a/examples/network/torrent/addtorrentdialog.cpp +++ b/examples/network/torrent/addtorrentdialog.cpp @@ -117,14 +117,14 @@ void AddTorrentDialog::setTorrent(const QString &torrentFile) if (lastDestinationDirectory.isEmpty()) lastDestinationDirectory = lastDirectory; - + MetaInfo metaInfo; QFile torrent(torrentFile); if (!torrent.open(QFile::ReadOnly) || !metaInfo.parse(torrent.readAll())) { enableOkButton(); return; } - + ui.torrentFile->setText(torrentFile); ui.announceUrl->setText(metaInfo.announceUrl()); if (metaInfo.comment().isEmpty()) |