~libertine-team/libertine/devel

« back to all changes in this revision

Viewing changes to libertine/ContainerAppsList.cpp

  • Committer: Tarmac
  • Author(s): Larry Price
  • Date: 2016-08-16 18:51:33 UTC
  • mfrom: (265.10.5 listmodel-crash)
  • Revision ID: tarmac-20160816185133-ufodwk8l4fnu0h6x
Return user to homepage when container has been destroyed from under them. Fixes: https://bugs.launchpad.net/bugs/1604015.

Approved by Libertine CI Bot, Christopher Townsend.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
{ }
28
28
 
29
29
 
30
 
ContainerAppsList::
31
 
~ContainerAppsList()
32
 
{ }
33
 
 
34
 
 
35
30
void ContainerAppsList::
36
31
setContainerApps(QString const& container_id)
37
32
{
51
46
 
52
47
bool ContainerAppsList::
53
48
empty() const noexcept
54
 
{ return apps_->empty(); }
 
49
{ return apps_ == nullptr || apps_->empty(); }
55
50
 
56
51
 
57
52
ContainerAppsList::size_type ContainerAppsList::
58
53
size() const noexcept
59
 
{ return apps_->count(); }
 
54
{ return apps_ != nullptr ? apps_->count() : 0;}
60
55
 
61
56
 
62
57
int ContainerAppsList::