2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 07:05:13 +00:00

dont cache default background image, cmd+m minimizes window in os x

This commit is contained in:
John Preston
2015-04-16 14:14:25 +03:00
parent 34d5c3777b
commit a356a4dc06
5 changed files with 21 additions and 3 deletions

View File

@@ -2178,6 +2178,15 @@ namespace Local {
void writeBackground(int32 id, const QImage &img) {
if (!_working()) return;
if (img.isNull()) {
if (_backgroundKey) {
clearKey(_backgroundKey);
_backgroundKey = 0;
_mapChanged = true;
}
_writeMap();
return;
}
QByteArray png;
{
QBuffer buf(&png);