Skip to content

Commit

Permalink
Fix ConfigurationDialog change language bug when there is no configur…
Browse files Browse the repository at this point in the history
…ation. Bump to version 1.26.1.
  • Loading branch information
FelixdelasPozas committed Oct 16, 2022
1 parent 5afa9e3 commit 78aa9cd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion AboutDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <QDateTime>
#include <QApplication>

const QString AboutDialog::VERSION{"1.26.0"};
const QString AboutDialog::VERSION{"1.26.1"};
const QString COPYRIGHT{"Copyright (c) 2016-%1 Félix de las Pozas Álvarez"};

//-----------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cmake_minimum_required (VERSION 3.0.0)
# Version Number
set (TRAYWEATHER_VERSION_MAJOR 1)
set (TRAYWEATHER_VERSION_MINOR 26)
set (TRAYWEATHER_VERSION_PATCH 0)
set (TRAYWEATHER_VERSION_PATCH 1)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
6 changes: 5 additions & 1 deletion Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ int main(int argc, char *argv[])
if(!configuration.isValid())
{
ConfigurationDialog dialog(configuration);
dialog.exec();

QObject::connect(&dialog, &ConfigurationDialog::languageChanged, []( const QString &lang ) { changeLanguage(lang); });

auto value = dialog.exec();
if(value == QDialog::Rejected) return 0;

dialog.getConfiguration(configuration);

Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,16 @@ To the translation in your language. For example in Spanish it is:

# Repository information

**Version**: 1.26.0
**Version**: 1.26.1

**Status**: finished.

**cloc statistics**

| Language |files |blank |comment |code |
|:-----------------------------|--------------:|------------:|-----------------:|-----:|
| C++ | 10 | 1035 | 393 | 5118 |
| C++ | 10 | 1037 | 393 | 5120 |
| C/C++ Header | 10 | 283 | 829 | 933 |
| HTML | 1 | 33 | 0 | 150 |
| CMake | 1 | 19 | 11 | 125 |
| **Total** | **22** | **1370** | **1233** | **6326** |
| **Total** | **22** | **1372** | **1233** | **6328** |

0 comments on commit 78aa9cd

Please sign in to comment.