Skip to content

Commit

Permalink
Don't ask twice for masterkey during export
Browse files Browse the repository at this point in the history
  • Loading branch information
Rookiestyle committed Sep 10, 2020
1 parent 6483b04 commit 8cba454
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion src/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,12 @@ private void bExport_Click(object sender, EventArgs e)
PwDatabase db = m_dDB.ElementAt(lbDB.SelectedIndex).Key;
RefreshHandler(db);
//if (!m_handler.SetDB(db, false)) return;
if (!AppPolicy.Current.ExportNoKey && !m_handler.ReAskKey()) return;
//If configured, KeePass 2.46 will ask for the masterkey during the export
//No need to ask here
if (Tools.KeePassVersion < new Version(2, 46))
{
if (!AppPolicy.Current.ExportNoKey && !m_handler.ReAskKey()) return;
}

db = m_handler.OTPDB;
PwGroup pg = db.RootGroup;
Expand Down
4 changes: 2 additions & 2 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.14")]
[assembly: AssemblyFileVersion("0.14")]
[assembly: AssemblyVersion("0.15")]
[assembly: AssemblyFileVersion("0.15")]
2 changes: 1 addition & 1 deletion version.info
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:
KeePassOTP:0.14
KeePassOTP:0.15
KeePassOTP!de:9
KeePassOTP!fr:2
:

0 comments on commit 8cba454

Please sign in to comment.