~smspillaz/unity/unity.fix_modern_gl_build

« back to all changes in this revision

Viewing changes to launcher/LauncherController.cpp

The launcher will auto hide when installing a program from the software center now.. Fixes: https://bugs.launchpad.net/bugs/1002440. Approved by Brandon Schaefer, Marco Trevisan (Treviño).

Show diffs side-by-side

added added

removed removed

Lines of Context:
482
482
      return;
483
483
  }
484
484
 
 
485
  // Check if desktop file was supplied, or if it's set to SC's agent
 
486
  // See https://bugs.launchpad.net/unity/+bug/1002440
 
487
  if (path.empty() || path == "software-center-agent")
 
488
    return;
 
489
 
485
490
  SoftwareCenterLauncherIcon::Ptr result = CreateSCLauncherIcon(path, aptdaemon_trans_id, icon_path);
486
491
 
487
492
  CurrentLauncher()->ForceReveal(true);