diff --git a/src/KeePassOTPExt.cs b/src/KeePassOTPExt.cs index 57bd56d..07f2052 100644 --- a/src/KeePassOTPExt.cs +++ b/src/KeePassOTPExt.cs @@ -240,10 +240,10 @@ private void OnOTPQRCode(object sender, EventArgs e) f.MinimizeBox = false; f.MaximizeBox = false; PictureBox pb = new PictureBox(); - pb.Size = new Size(bmp.Width, bmp.Height); pb.Location = new Point(0, 0); + pb.Image = new Bitmap(bmp, bmp.Size); //Assigning bmp directly did not work in my Ubuntu VM... + pb.ClientSize = pb.Image.Size; f.ClientSize = pb.Size; - pb.Image = bmp; f.Controls.Add(pb); if (!string.IsNullOrEmpty(otp.Issuer) && (otp.Issuer != PluginTranslate.PluginName)) { @@ -281,8 +281,9 @@ private void OnOTPQRCode(object sender, EventArgs e) f.ShowDialog(KeePass.UI.GlobalWindowManager.TopWindow); pb.Image.Dispose(); f.Dispose(); + bmp.Dispose(); } - catch { } + catch { }; } private void OnOTPAutotype(object sender, EventArgs e) diff --git a/src/Properties/AssemblyInfo.cs b/src/Properties/AssemblyInfo.cs index da94669..542b676 100644 --- a/src/Properties/AssemblyInfo.cs +++ b/src/Properties/AssemblyInfo.cs @@ -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.19")] -[assembly: AssemblyFileVersion("0.19")] \ No newline at end of file +[assembly: AssemblyVersion("0.19.1")] +[assembly: AssemblyFileVersion("0.19.1")] \ No newline at end of file diff --git a/version.info b/version.info index 36bcdfc..8a7d90a 100644 --- a/version.info +++ b/version.info @@ -1,5 +1,5 @@ : -KeePassOTP:0.19 +KeePassOTP:0.19.1 KeePassOTP!de:11 KeePassOTP!fr:3 :