Pass a pointer to the parent widget to decrypt dialog.
This commit is contained in:
parent
4df97ec3e7
commit
85aca763a2
|
@ -229,7 +229,7 @@ void luks::setCryptOpen(bool cryptOpen)
|
||||||
m_isCryptOpen = cryptOpen;
|
m_isCryptOpen = cryptOpen;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool luks::cryptOpen(const QString& deviceNode)
|
bool luks::cryptOpen(QWidget* parent, const QString& deviceNode)
|
||||||
{
|
{
|
||||||
if (m_isCryptOpen)
|
if (m_isCryptOpen)
|
||||||
{
|
{
|
||||||
|
@ -250,7 +250,7 @@ bool luks::cryptOpen(const QString& deviceNode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QPointer<DecryptLuksDialog> dlg = new DecryptLuksDialog(0, deviceNode); //TODO: parent widget instead of 0
|
QPointer<DecryptLuksDialog> dlg = new DecryptLuksDialog(parent, deviceNode);
|
||||||
|
|
||||||
if (dlg->exec() != QDialog::Accepted)
|
if (dlg->exec() != QDialog::Accepted)
|
||||||
{
|
{
|
||||||
|
|
|
@ -123,7 +123,7 @@ public:
|
||||||
bool isCryptOpen() const;
|
bool isCryptOpen() const;
|
||||||
void setCryptOpen(bool cryptOpen);
|
void setCryptOpen(bool cryptOpen);
|
||||||
|
|
||||||
bool cryptOpen(const QString& deviceNode);
|
bool cryptOpen(QWidget* parent, const QString& deviceNode);
|
||||||
bool cryptClose(const QString& deviceNode);
|
bool cryptClose(const QString& deviceNode);
|
||||||
|
|
||||||
void loadInnerFileSystem(const QString& mapperNode);
|
void loadInnerFileSystem(const QString& mapperNode);
|
||||||
|
|
Loading…
Reference in New Issue