~ubuntu-branches/ubuntu/feisty/qgo/feisty

« back to all changes in this revision

Viewing changes to debian/patches/99_segfault.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Chaboisseau
  • Date: 2006-10-03 23:46:07 UTC
  • mfrom: (1.1.7 upstream) (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20061003234607-7x4xxn1cwgo9cxvr
Tags: 1.5.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh /usr/share/dpatch/dpatch-run
2
 
## 99_segfault.dpatch by  <cyril.chaboisseau@free.fr>
3
 
##
4
 
## All lines beginning with `## DP:' are a description of the patch.
5
 
## DP: upstream patch to correct segfault
6
 
 
7
 
@DPATCH@
8
 
 
9
 
--- qgo.orig/src/mainwin.cpp
10
 
+++ qgo/src/mainwin.cpp
11
 
@@ -2238,7 +2238,8 @@
12
 
 void ClientWindow::slot_menu_players(QListViewItem *lv, const QPoint& pt, int)
13
 
 {
14
 
        // emulate right button
15
 
-       slot_mouse_players(2, lv, pt, 0);
16
 
+       if (lv)
17
 
+               slot_mouse_players(2, lv, pt, 0);
18
 
 }
19
 
 // mouse click on ListView_players
20
 
 void ClientWindow::slot_mouse_players(int button, QListViewItem *lv, const QPoint& /*pt */, int /*column*/)