Skip to content

Commit 7230986

Browse files
committed
Merge remote-tracking branch 'origin/dev'
2 parents 9c866d0 + 531eab8 commit 7230986

File tree

3 files changed

+26
-11
lines changed

3 files changed

+26
-11
lines changed

CHANGELOG.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
# Changelog
22

3+
## 1.3.0 - 2020-10-03
4+
5+
### Changed
6+
- Update Spanish translation (Victorhck)
7+
8+
### Fixed
9+
- Properly encode URL of the note path (Aurelien Gateau)
10+
- Fix untranslated text in About tab on Linux (Aurelien Gateau)
11+
312
## 1.2.91 - 2020-09-28
413

514
### Added
615
- You can now search inside your notes with the new search bar (Pavol Oresky)
7-
- Move selected lines up and down (Aurelien Gateau)
16+
- You can now move selected lines up and down with Alt+Shift+Up and Down (Aurelien Gateau)
817
- macOS dmg (Aurelien Gateau)
918
- Windows installer (Aurelien Gateau)
1019

11-
## Changed
20+
### Changed
1221
- Reorganized context menu: added "Edit" and "View" submenus (Aurelien Gateau)
1322

1423
## 1.2.0 - 2019-05-11

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.17)
22
project(nanonote
3-
VERSION 1.2.91
3+
VERSION 1.3.0
44
DESCRIPTION "Minimalist note taking application for short-lived notes"
55
HOMEPAGE_URL "https://github.com/agateau/nanonote"
66
)

src/SettingsDialog.cpp

+14-8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "ui_SettingsDialog.h"
33

44
#include <QSpinBox>
5+
#include <QUrl>
56

67
#include "Settings.h"
78

@@ -35,22 +36,27 @@ SettingsDialog::~SettingsDialog() {
3536
}
3637

3738
void SettingsDialog::setupConfigTab() {
38-
auto noteLink = QString("<html><a href='file:%1'>%1</a></html>").arg(Settings::notePath());
39+
auto url = QUrl::fromLocalFile(Settings::notePath());
40+
auto noteLink =
41+
QString("<html><a href='%1'>%2</a></html>").arg(url.toEncoded(), Settings::notePath());
3942
ui->noteLocationLabel->setText(noteLink);
4043
}
4144

4245
void SettingsDialog::setupAboutTab() {
43-
auto text = tr(R"(<h2>Nanonote %1</h2>
44-
<p>A minimalist note taking application.<br>
45-
<a href='%2'>%2</a></p>)",
46+
// Do not use C++ raw strings here, the lupdate shipped with Ubuntu 18.04 does not understand
47+
// them
48+
auto text = tr("<h2>Nanonote %1</h2>\n"
49+
"<p>A minimalist note taking application.<br>\n"
50+
"<a href='%2'>%2</a></p>",
4651
"%1: version, %2: project url")
4752
.arg(qApp->applicationVersion(), PROJECT_URL);
4853
ui->aboutLabel->setText(text);
4954

50-
text = tr(R"(<p>Hi,</p>
51-
<p>I hope you enjoy Nanonote!</p>
52-
<p>If you do, it would be lovely if you could <a href='%1'>support my work</a> on free and open source software.</p>
53-
<p align="right">― Aurélien</p>)",
55+
text = tr("<p>Hi,</p>\n"
56+
"<p>I hope you enjoy Nanonote!</p>\n"
57+
"<p>If you do, it would be lovely if you could <a href='%1'>support my work</a> on "
58+
"free and open source software.</p>\n"
59+
"<p align=\"right\">― Aurélien</p>",
5460
"%1: support url")
5561
.arg(SUPPORT_URL);
5662
auto font = ui->supportLabel->font();

0 commit comments

Comments
 (0)