~tatokis/unity/gcc-72-errors

« back to all changes in this revision

Viewing changes to shortcuts/ShortcutController.cpp

  • Committer: Marco Trevisan (Treviño)
  • Date: 2014-05-14 00:06:05 UTC
  • mto: (3794.7.5 shortcuts-hidpi)
  • mto: This revision was merged to the branch mainline in revision 3816.
  • Revision ID: mail@3v1n0.net-20140514000605-5zdod8h55pubno3k
ShortcutController: always fill the model before setting it

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
  if (!view_)
71
71
    return;
72
72
 
 
73
  model->Fill();
73
74
  view_->SetModel(model);
74
75
 
75
76
  if (Visible())
76
77
  {
77
 
    model->Fill();
78
78
    auto const& offset = GetOffsetPerMonitor(view_->monitor());
79
79
 
80
80
    if (offset.x < 0 || offset.y < 0)