*** zbenjamin_ is now known as zbenjamin | 02:48 | |
*** MMori_ is now known as MMori | 07:28 | |
attah | Any idea why https://github.com/attah/harbour-tint/blob/f70994c7b9ee6d443585e6513171bb72daf57eb6/qml/pages/FirstPage.qml#L83 doesn't work (db is undefined), but https://github.com/attah/harbour-tint/blob/f70994c7b9ee6d443585e6513171bb72daf57eb6/qml/pages/BridgePage.qml#L75 works? | 14:54 |
---|---|---|
attah | It feels like this has changed without me really doing anything (it used to work), but of course that's silly | 14:55 |
attah | This kludge solves it, but i don't get why it isn't needed in the other place then https://github.com/attah/harbour-tint/blob/3ea6887ebb47ee392216717882375fbdfbe5c7be/qml/pages/FirstPage.qml#L84 | 14:58 |
*** svartoyg_afk is now known as svartoyg | 16:04 | |
coderus | attah: wtf is db, its not even defined here? | 17:44 |
attah | it's a component in the https://github.com/attah/harbour-tint/blob/master/qml/harbour-tint.qml | 17:45 |
coderus | attah: you need to make db a property of appwindow then, to make it globally avaibale from all childrens | 17:46 |
attah | but it works like what i changed it to... why is only the connect thingy picky? | 17:47 |
coderus | but the problem still exists, because you do push, so scope of existing connect funstion is missong its context. you better create functions inside appwindow and call connect to it, it will always keep context until window dies | 17:47 |
attah | to me that sounds just as iffy with regard to accessing 'dialog', which is also outside the connection | 17:50 |
coderus | if your function lasts long enogh you will get problems with more stuff. deleteLater will finally catch you in a bad way. so always control context of your functions | 17:52 |
attah | I'm completely OK with i'm doing this wrong... but i have trouble understanding what makes a good solution | 17:54 |
attah | The other link in the first message for example, is that crap too? | 17:54 |
attah | And why is accessing the dialog variable not bad, or is it? | 17:55 |
attah | Or is the case just that db shouldn't really be relied on to in scope on the page as a whole, and the connect is just what pushes it over the edge? | 18:06 |
attah | Ugh... "Too many spec files - not using any. Use -s to identify a specific one" | 20:28 |
attah | And i promise, there is only one | 20:29 |
attah | or actually i lied | 20:29 |
attah | crap | 20:29 |
*** svartoyg is now known as svartoyg_afk | 21:34 | |
*** TriztAway is now known as Trizt | 21:47 | |
*** Helle is now known as Guest12483 | 22:36 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!