commit 96e2b902af6773aecdad9714cf7991e15e4708a1
parent 6efe1c24cb7b46ca52328bf8faf8f0a0bf48414f
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sun, 31 Jul 2016 15:37:18 -0400
browser: fix crash when double-clicking on an obsolete package
v1.1beta1 regression introduced in 62dfea006210ce32f3ee687f9c40d56eb26adcbd
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/browser.cpp b/src/browser.cpp
@@ -805,7 +805,9 @@ auto Browser::getEntry(const int listIndex) -> Entry *
void Browser::aboutPackage(const int index)
{
- if(const Entry *entry = getEntry(index))
+ const Entry *entry = getEntry(index);
+
+ if(entry && entry->package)
m_reapack->about(entry->package, handle());
}