Skip to content

Instantly share code, notes, and snippets.

@sledgehammer999
Created January 11, 2015 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sledgehammer999/42841b775c859220045f to your computer and use it in GitHub Desktop.
Save sledgehammer999/42841b775c859220045f to your computer and use it in GitHub Desktop.
This is related to #2385
diff --git a/src/addnewtorrentdialog.cpp b/src/addnewtorrentdialog.cpp
index e0ac8af..e970133 100644
--- a/src/addnewtorrentdialog.cpp
+++ b/src/addnewtorrentdialog.cpp
@@ -245,6 +245,7 @@ bool AddNewTorrentDialog::loadMagnet(const QString &magnet_uri)
HiddenData::addData(m_hash);
QBtSession::instance()->addMagnetUri(m_url, false);
setMetadataProgressIndicator(true, tr("Retrieving metadata..."));
+ ui->lblhash->setText(m_hash);
return true;
}
diff --git a/src/addnewtorrentdialog.ui b/src/addnewtorrentdialog.ui
index dfa1af1..f821c1f 100644
--- a/src/addnewtorrentdialog.ui
+++ b/src/addnewtorrentdialog.ui
@@ -120,7 +120,14 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
- <layout class="QGridLayout" name="gridLayout" rowstretch="0,0,0" columnstretch="0,1">
+ <layout class="QGridLayout" name="gridLayout" rowstretch="0,0,0,0,0,0,0" columnstretch="0,0,0">
+ <item row="4" column="0">
+ <widget class="QLabel" name="label_3">
+ <property name="text">
+ <string>Date:</string>
+ </property>
+ </widget>
+ </item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
@@ -128,7 +135,7 @@
</property>
</widget>
</item>
- <item row="0" column="1">
+ <item row="0" column="2">
<widget class="QLabel" name="size_lbl">
<property name="text">
<string notr="true">xx GB (xx GB available)</string>
@@ -142,24 +149,31 @@
</property>
</widget>
</item>
- <item row="1" column="1">
+ <item row="1" column="2">
<widget class="QLabel" name="comment_lbl">
<property name="text">
<string notr="true">comment</string>
</property>
</widget>
</item>
- <item row="2" column="0">
- <widget class="QLabel" name="label_3">
+ <item row="4" column="2">
+ <widget class="QLabel" name="date_lbl">
<property name="text">
- <string>Date:</string>
+ <string notr="true">02/03/2012 20:30</string>
</property>
</widget>
</item>
- <item row="2" column="1">
- <widget class="QLabel" name="date_lbl">
+ <item row="5" column="0">
+ <widget class="QLabel" name="label_4">
<property name="text">
- <string notr="true">02/03/2012 20:30</string>
+ <string>Info Hash</string>
+ </property>
+ </widget>
+ </item>
+ <item row="5" column="1">
+ <widget class="QLineEdit" name="lblhash">
+ <property name="readOnly">
+ <bool>false</bool>
</property>
</widget>
</item>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment