Skip to content

Commit

Permalink
Changes for clicked package and fixed emtpy element in links
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Triantafillis committed Sep 13, 2013
1 parent 767c80b commit a5717c9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
3 changes: 2 additions & 1 deletion components/LinksTab.qml
Expand Up @@ -20,7 +20,8 @@ Tab {
}

for (var i = 0; i < links.split(",").length; i++) {
if (links.split(",")[i] !== "Unknown") {
console.debug("link: " + links.split(",")[i])
if (links.split(",")[i] !== "Unknown" && links.split(",")[i] !== "") {
linksListView.model.append({'link': links.split(",")[i]})
}
}
Expand Down
17 changes: 7 additions & 10 deletions manifest.json
@@ -1,17 +1,14 @@
{
"description": "description of CNotes",
"framework": "ubuntu-sdk-13.10",
"maintainer": "Chris Triantafillis",
"name": "com.ubuntu.developer.clepto.CNotes",
"security": {
"profiles": {
"CNotes": {
"policy_groups": [
"networking"
],
"policy_version": 1
}
"hooks": {
"CNotes": {
"apparmor": "CNotes.json",
"desktop": "CNotes.desktop"
}
},
"maintainer": "Chris Triantafillis <christriant1995@gmail.com>",
"name": "com.ubuntu.developer.christriant.CNotes",
"title": "CNotes",
"version": "0.1"
}
4 changes: 1 addition & 3 deletions pages/EditNotePage.qml
Expand Up @@ -2,7 +2,7 @@ import QtQuick 2.0
import Ubuntu.Components 0.1
import Ubuntu.Components.ListItems 0.1 as ListItem
import Ubuntu.Components.Popups 0.1
import "../Storage.js" as Storage
import "../components"

Tabs {
Tab {
Expand Down Expand Up @@ -99,12 +99,10 @@ Tabs {

ListItem.ValueSelector {
id: categoriesSelectorEdit
property variant categories: Storage.fetchAllCategories()

width: parent.width
text: i18n.tr("Category")
expanded: false
// values: categories
values: mainView.database.getDoc("categories").categories
selectedIndex: getCategoryIndex(mainView.category)

Expand Down

0 comments on commit a5717c9

Please sign in to comment.