Fix multiple favourites
This commit is contained in:
parent
41f07acc10
commit
cf8f4a6680
3 changed files with 5 additions and 3 deletions
|
@ -23,8 +23,10 @@ ApplicationWindow
|
||||||
}
|
}
|
||||||
|
|
||||||
function addFavourite(ssid, url) {
|
function addFavourite(ssid, url) {
|
||||||
|
if(isFavourite(ssid, url))
|
||||||
|
return;
|
||||||
db_conn.transaction(function (tx) {
|
db_conn.transaction(function (tx) {
|
||||||
tx.executeSql('REPLACE INTO Favourites VALUES(?, ?)', [ssid, url] );
|
tx.executeSql('INSERT INTO Favourites VALUES(?, ?)', [ssid, url] );
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
<context>
|
<context>
|
||||||
<name>CoverPage</name>
|
<name>CoverPage</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Seaprint</source>
|
<source>SeaPrint</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
<context>
|
<context>
|
||||||
<name>CoverPage</name>
|
<name>CoverPage</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Seaprint</source>
|
<source>SeaPrint</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
|
Loading…
Reference in a new issue