[smuxi: 1/2] Frontend-GNOME-IRC: fixed NRE thrown by CtcpMenu() (closes: #1002)
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi: 1/2] Frontend-GNOME-IRC: fixed NRE thrown by CtcpMenu() (closes: #1002)
- Date: Thu, 4 Dec 2014 13:52:55 +0000 (UTC)
commit da4cd117e76a63405585ee33b526699a8b84d69e
Author: Mirco Bauer <meebey meebey net>
Date: Sat Nov 29 11:08:32 2014 +0100
Frontend-GNOME-IRC: fixed NRE thrown by CtcpMenu() (closes: #1002)
src/Frontend-GNOME-IRC/IrcPersonChatView.cs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/Frontend-GNOME-IRC/IrcPersonChatView.cs b/src/Frontend-GNOME-IRC/IrcPersonChatView.cs
index 7a0b477..7413d85 100644
--- a/src/Frontend-GNOME-IRC/IrcPersonChatView.cs
+++ b/src/Frontend-GNOME-IRC/IrcPersonChatView.cs
@@ -84,6 +84,11 @@ namespace Smuxi.Frontend.Gnome
IEnumerable<Gtk.MenuItem> CreateContextMenuItems()
{
+ if (IrcProtocolManager == null) {
+ // we are not synced yet
+ yield break;
+ }
+
Gtk.ImageMenuItem whois_item = new Gtk.ImageMenuItem(_("Whois"));
whois_item.Activated += OnMenuWhoisItemActivated;
yield return whois_item;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]