Skip to content

Commit

Permalink
Copy palette before exporting it
Browse files Browse the repository at this point in the history
Otherwise its save path gets mangled and it will disappear from the
program.
  • Loading branch information
askmeaboutlo0m committed Aug 11, 2023
1 parent 7618d6c commit 9e71085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Unreleased Version 2.2.0-pre
* Fix: Actually pick color when adding a color to the color picker through the color dialog.
* Feature: Mark window when a chat message is received. On Windows, this makes the icon in the task bar orange. On macOS, it supposedly bounces an icon somewhere. On other platforms it probably does something similar, indicating which window is the one that got a message ready. Thanks Radio for suggesting.
* Fix: Don't add current color to the palette when creating it. Thanks xxxx for reporting.
* Fix: Make exported palettes not start using the exported location to save changes to. Thanks xxxx for reporting.

2023-07-31 Version 2.2.0-beta.6
* Fix: Don't forget account password when entering a wrong session password.
Expand Down
2 changes: 1 addition & 1 deletion src/desktop/docks/colorpalette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ void ColorPaletteDock::exportPalette()
tr("GIMP palette (%1)").arg("*.gpl"));

if(!filename.isEmpty()) {
color_widgets::ColorPalette &pal = d->paletteWidget->colorPalette();
color_widgets::ColorPalette pal = d->paletteWidget->colorPalette();

if(!pal.save(filename))
QMessageBox::warning(this, tr("Error"), tr("Couldn't save file"));
Expand Down

0 comments on commit 9e71085

Please sign in to comment.