~mterry/unity8/dismiss-old-pam-prompts

« back to all changes in this revision

Viewing changes to tests/mocks/Unity/Application/ApplicationInfo.cpp

  • Committer: CI bot
  • Author(s): Michał Sawicz
  • Date: 2014-08-17 00:37:22 UTC
  • mfrom: (1174.1.2 fix-overview-test)
  • Revision ID: ps-jenkins@lists.canonical.com-20140817003722-9rrs62hv01eykeo9
Fix dash overview test and prevent crash in mock ApplicationInfo's d'tor.

tryCompareFunction didn't work because .item threw. 
Approved by: Andrea Cimitan, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    if (m_surface) {
55
55
        Q_EMIT SurfaceManager::singleton()->surfaceDestroyed(m_surface);
56
56
        m_surface->deleteLater();
 
57
        setSurface(nullptr);
57
58
    }
58
59
}
59
60