~ubuntu-branches/ubuntu/natty/plasma-widget-daisy/natty

« back to all changes in this revision

Viewing changes to applet/src/daisyTasks.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2011-01-20 19:20:07 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110120192007-t4192s5cmgtq4qnx
Tags: 0.0.4.25-0ubuntu1
* New upstream release
  - Update watch file

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
*   Tasks: daisy
3
3
*   Description: a daisy for plasma
4
4
*   Copyright (C) 2009,2010 by Lechio <Alessandros1pt@yahoo.com.br>
 
5
*       Patch ligne 268: pierre.parent@insa-rouen.fr
5
6
*
6
7
*   This program is free software; you can redistribute it and/or modify
7
8
*   it under the terms of the GNU General Public License as
263
264
        #endif
264
265
      }
265
266
      
266
 
      if ( m_tiptype == "thumbnail" || m_tiptype == "icon" )
 
267
      //We need to check task_tmp actually exists before accessing its icon...
 
268
      if ( (m_tiptype == "thumbnail" || m_tiptype == "icon") && task_tmp)
267
269
        toolTipData.setImage( task_tmp->icon(32, 32, true) );
268
270
      Plasma::ToolTipManager::self()->setContent(m_widgets[m_alias.indexOf( widclass_tmp )], toolTipData);
269
271
    }