Fixed BUG with preset's deleting. Fixed about page
This commit is contained in:
parent
e32b467048
commit
4083d09bc9
|
@ -161,7 +161,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.<br><br>
|
GNU General Public License for more details.<br><br>
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.<br><br><br>
|
along with this program. If not, see <a href=\"http://www.gnu.org/licenses\">http://www.gnu.org/licenses.<br><br><br>
|
||||||
|
|
||||||
|
|
||||||
All artworks are licensed under a <a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">Creative Commons Attribution-ShareAlike 4.0 International</a>
|
All artworks are licensed under a <a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">Creative Commons Attribution-ShareAlike 4.0 International</a>
|
||||||
|
|
|
@ -29,8 +29,23 @@ Page {
|
||||||
|
|
||||||
model: listModel
|
model: listModel
|
||||||
delegate: ListItem {
|
delegate: ListItem {
|
||||||
|
id: listItem
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
|
ListView.onRemove: animateRemoval(listItem)
|
||||||
|
function remove() {
|
||||||
|
remorseAction(qsTr("Deleting"), function() {
|
||||||
|
settings.deletePreset(presetsList.model.get(index).name)
|
||||||
|
|
||||||
|
if (settings.presetsList().length < 1) {
|
||||||
|
pageStack.popAttached()
|
||||||
|
} else {
|
||||||
|
presetsList.model.remove(index)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
settings.preset = presetsList.model.get(index).name
|
settings.preset = presetsList.model.get(index).name
|
||||||
|
|
||||||
|
@ -41,13 +56,7 @@ Page {
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: qsTr("Delete")
|
text: qsTr("Delete")
|
||||||
|
|
||||||
onClicked: {
|
onClicked: remove()
|
||||||
settings.deletePreset(presetsList.model.get(index).name)
|
|
||||||
|
|
||||||
if (settings.presetsList().length < 1) {
|
|
||||||
pageStack.popAttached()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,11 @@
|
||||||
# * date Author's Name <author's email> version-release
|
# * date Author's Name <author's email> version-release
|
||||||
# - Summary of changes
|
# - Summary of changes
|
||||||
|
|
||||||
* Wed Aug 30 2017 Claudio Maradonna <claudio@unitoo.pw>
|
* Wed Sep 06 2017 Claudio Maradonna <claudio@unitoo.pw> 1.0b
|
||||||
1.0
|
- Fixed bug with preset's deleting
|
||||||
|
- Fixed license in about page (cutted by html tag)
|
||||||
|
|
||||||
|
* Wed Aug 30 2017 Claudio Maradonna <claudio@unitoo.pw> 1.0
|
||||||
- Now you can add inner timers for rounds
|
- Now you can add inner timers for rounds
|
||||||
- New icon
|
- New icon
|
||||||
- Various bug fixes
|
- Various bug fixes
|
||||||
|
|
|
@ -13,7 +13,7 @@ Name: harbour-boxing-timer
|
||||||
%{!?qtc_make:%define qtc_make make}
|
%{!?qtc_make:%define qtc_make make}
|
||||||
%{?qtc_builddir:%define _builddir %qtc_builddir}
|
%{?qtc_builddir:%define _builddir %qtc_builddir}
|
||||||
Summary: Boxing timer
|
Summary: Boxing timer
|
||||||
Version: 1.0
|
Version: 1.0b
|
||||||
Release: 1
|
Release: 1
|
||||||
Group: Applications/Utilities
|
Group: Applications/Utilities
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Name: harbour-boxing-timer
|
Name: harbour-boxing-timer
|
||||||
Summary: Boxing timer
|
Summary: Boxing timer
|
||||||
Version: 1.0
|
Version: 1.0b
|
||||||
Release: 1
|
Release: 1
|
||||||
# The contents of the Group field should be one of the groups listed here:
|
# The contents of the Group field should be one of the groups listed here:
|
||||||
# http://gitorious.org/meego-developer-tools/spectacle/blobs/master/data/GROUPS
|
# http://gitorious.org/meego-developer-tools/spectacle/blobs/master/data/GROUPS
|
||||||
|
|
Loading…
Reference in New Issue