diff --git a/ShareX.HistoryLib/Properties/Resources.Designer.cs b/ShareX.HistoryLib/Properties/Resources.Designer.cs
index fe8270759..46d5387c5 100644
--- a/ShareX.HistoryLib/Properties/Resources.Designer.cs
+++ b/ShareX.HistoryLib/Properties/Resources.Designer.cs
@@ -297,7 +297,7 @@ internal static string HistoryItemManager_InitializeComponent_Markdown__linked_i
}
///
- /// Looks up a localized string similar to More info.
+ /// Looks up a localized string similar to More info....
///
internal static string HistoryItemManager_InitializeComponent_More_info {
get {
diff --git a/ShareX.HistoryLib/Properties/Resources.resx b/ShareX.HistoryLib/Properties/Resources.resx
index e9ac9f289..2b3bd546f 100644
--- a/ShareX.HistoryLib/Properties/Resources.resx
+++ b/ShareX.HistoryLib/Properties/Resources.resx
@@ -182,7 +182,7 @@
Open
- More info
+ More info...
HTML link
diff --git a/ShareX.HistoryLib/UserControls/ObjectListView.cs b/ShareX.HistoryLib/UserControls/ObjectListView.cs
index ef1d0e582..ce08aacd7 100644
--- a/ShareX.HistoryLib/UserControls/ObjectListView.cs
+++ b/ShareX.HistoryLib/UserControls/ObjectListView.cs
@@ -55,10 +55,11 @@ public ObjectListView()
MultiSelect = false;
Columns.Add(Resources.ObjectListView_ObjectListView_Name, 125);
Columns.Add(Resources.ObjectListView_ObjectListView_Value, 300);
- ContextMenu contextMenu = new ContextMenu();
- contextMenu.MenuItems.Add(Resources.ObjectListView_ObjectListView_Copy_name).Click += PropertyListView_Click_Name;
- contextMenu.MenuItems.Add(Resources.ObjectListView_ObjectListView_Copy_value).Click += PropertyListView_Click_Value;
- ContextMenu = contextMenu;
+ ContextMenuStrip cms = new ContextMenuStrip();
+ cms.ShowImageMargin = false;
+ cms.Items.Add(Resources.ObjectListView_ObjectListView_Copy_name).Click += PropertyListView_Click_Name;
+ cms.Items.Add(Resources.ObjectListView_ObjectListView_Copy_value).Click += PropertyListView_Click_Value;
+ ContextMenuStrip = cms;
}
private void PropertyListView_Click_Name(object sender, EventArgs e)
@@ -66,6 +67,7 @@ private void PropertyListView_Click_Name(object sender, EventArgs e)
if (SelectedItems.Count > 0)
{
string text = SelectedItems[0].Text;
+
if (!string.IsNullOrEmpty(text))
{
ClipboardHelpers.CopyText(text);
@@ -78,6 +80,7 @@ private void PropertyListView_Click_Value(object sender, EventArgs e)
if (SelectedItems.Count > 0)
{
string text = SelectedItems[0].SubItems[1].Text;
+
if (!string.IsNullOrEmpty(text))
{
ClipboardHelpers.CopyText(text);