All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vit Mojzis <vmojzis@redhat.com>
To: selinux@tycho.nsa.gov
Subject: [PATCH] gui/fcontextPage: Set default object class in addDialog
Date: Thu,  1 Mar 2018 12:03:06 +0100	[thread overview]
Message-ID: <20180301110306.16715-1-vmojzis@redhat.com> (raw)
In-Reply-To: <20180301105945.15587-1-vmojzis@redhat.com>

This ensures that user cannot leave the object class selection blank.

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
---
 gui/fcontextPage.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gui/fcontextPage.py b/gui/fcontextPage.py
index a6577ef7..370bbee4 100644
--- a/gui/fcontextPage.py
+++ b/gui/fcontextPage.py
@@ -164,6 +164,7 @@ class fcontextPage(semanagePage):
         self.fcontextEntry.set_text("")
         self.fcontextEntry.set_sensitive(True)
         self.fcontextFileTypeCombo.set_sensitive(True)
+        self.fcontextFileTypeCombo.set_active(0)
         self.fcontextTypeEntry.set_text("")
         self.fcontextMLSEntry.set_text("s0")
 
-- 
2.14.3

  parent reply	other threads:[~2018-03-01 11:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-22 13:29 [PATCH] gui/semanagePage: Close "edit" and "add" dialogues when successfull Vit Mojzis
2018-02-26 14:51 ` Stephen Smalley
2018-03-01 10:59   ` Vit Mojzis
2018-03-01 10:59     ` [PATCH 1/3] secilc: Fix documentation build for OS X systems Vit Mojzis
2018-03-01 11:03       ` Vit Mojzis
2018-03-01 11:03     ` Vit Mojzis [this message]
2018-03-01 14:49       ` [PATCH] gui/fcontextPage: Set default object class in addDialog Stephen Smalley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180301110306.16715-1-vmojzis@redhat.com \
    --to=vmojzis@redhat.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.