| Index: mash/quick_launch/quick_launch_application.cc
|
| diff --git a/mash/quick_launch/quick_launch_application.cc b/mash/quick_launch/quick_launch_application.cc
|
| index c5ba2de08fa1adffa205f813fb14e927ddecb3aa..7b10b3618074d217e969fca0b6fc0ac9abfb3d3b 100644
|
| --- a/mash/quick_launch/quick_launch_application.cc
|
| +++ b/mash/quick_launch/quick_launch_application.cc
|
| @@ -159,7 +159,7 @@ void QuickLaunchApplication::RemoveWindow(views::Widget* window) {
|
| auto it = std::find(windows_.begin(), windows_.end(), window);
|
| DCHECK(it != windows_.end());
|
| windows_.erase(it);
|
| - if (windows_.empty())
|
| + if (windows_.empty() && base::MessageLoop::current()->is_running())
|
| base::MessageLoop::current()->QuitWhenIdle();
|
| }
|
|
|
|
|