keystore_server: Fix crash on request window close.

The outside waiting mechanism is responsible for quitting the dialog so
prevent it from quitting itself.
This commit is contained in:
Michael Lotz
2015-08-29 10:53:28 +02:00
parent 515e648d7b
commit bc5a7a3749
4 changed files with 20 additions and 0 deletions
@@ -176,6 +176,15 @@ AppAccessRequestWindow::~AppAccessRequestWindow()
}
bool
AppAccessRequestWindow::QuitRequested()
{
fResult = kMessageDisallow;
release_sem(fDoneSem);
return false;
}
void
AppAccessRequestWindow::MessageReceived(BMessage* message)
{
@@ -23,6 +23,7 @@ public:
bool appWasUpdated);
virtual ~AppAccessRequestWindow();
virtual bool QuitRequested();
virtual void MessageReceived(BMessage* message);
status_t RequestAppAccess(bool& allowAlways);
@@ -185,6 +185,15 @@ KeyRequestWindow::~KeyRequestWindow()
}
bool
KeyRequestWindow::QuitRequested()
{
fResult = B_CANCELED;
release_sem(fDoneSem);
return false;
}
void
KeyRequestWindow::MessageReceived(BMessage* message)
{
+1
View File
@@ -18,6 +18,7 @@ public:
KeyRequestWindow();
virtual ~KeyRequestWindow();
virtual bool QuitRequested();
virtual void MessageReceived(BMessage* message);
status_t RequestKey(const BString& keyringName,