diff options
author | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2012-07-10 03:35:56 +0300 |
---|---|---|
committer | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2012-07-10 23:54:03 +0300 |
commit | 85ba308c0f87473b42f15ab2063a4eb8bb750402 (patch) | |
tree | b32a03714aa28b9e65d4157df43e8ebee7711788 | |
parent | db96a87e69d1f5323e1008c5dae5036cf724009e (diff) |
vm-creator: Append '-live' to live domains' names
Without this change, we end-up appending redundant numbers to titles of
live boxes, e.g 'Fedora (live) 2' even though there is no box by the
title 'Fedora (live)' but only 'Fedora'. Besides its better to be
consistent and keep name and title creation logic as close as possible.
https://bugzilla.gnome.org/show_bug.cgi?id=679657
-rw-r--r-- | src/vm-creator.vala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vm-creator.vala b/src/vm-creator.vala index a3bdcca..eeb2837 100644 --- a/src/vm-creator.vala +++ b/src/vm-creator.vala @@ -157,6 +157,8 @@ private class Boxes.VMCreator { var base_title = install_media.label; title = base_title; var base_name = (install_media.os != null) ? install_media.os.short_id : base_title; + if (install_media.live) + base_name += "-live"; var name = base_name; var pool = yield get_storage_pool (); |