[gnome-boxes] vm-creator: Append '-live' to live domains' names
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] vm-creator: Append '-live' to live domains' names
- Date: Tue, 10 Jul 2012 20:54:58 +0000 (UTC)
commit 85ba308c0f87473b42f15ab2063a4eb8bb750402
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Jul 10 03:35:56 2012 +0300
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
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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]