Comments (15)
from qtodotxt2.
from qtodotxt2.
from qtodotxt2.
Ok. Where?
from qtodotxt2.
Its in the taskline. inputAccepted() gets called multiple times. I'm working on a fix.
from qtodotxt2.
I might be naive, but can you avoid tracking indexes? Can't you keep track of Task object?
from qtodotxt2.
yes, this made it a lot easier.
from qtodotxt2.
So now you have a solution that should work?
from qtodotxt2.
As far as I see, yes.
There are still some error messages from qml, when creating a new task and then selecting a filter without quitting editing before.
from qtodotxt2.
There are still issues, but data loss should not happen.
The problem is, that if you don't quit editing and then trigger a new action, the editing is quit by activeFocusChanged
https://github.com/QTodoTxt/QTodoTxt2/blob/qml/qtodotxt2/qml/TaskLine.qml#L54
which is too late, because the new tasklist seems to be populated already before the focus loss.
I have to investigate some more, but maybe we need a signal, which is emitted when an action gets triggered, which is about to change the content of the maincontroller.tasklist (setting filters, deleting/adding tasks etc.). Then we can quit editing upon this signal.
These problems also cause issue #35
from qtodotxt2.
maybe we could just disable all actions while editing? it is a bit crazy to change filtering while editing ....
from qtodotxt2.
That's one aproach I'm testing.
from qtodotxt2.
You should remove HTML and text variable in that code. Just get them from task
from qtodotxt2.
in the taskline? why?
from qtodotxt2.
Do they help? Having them only increases the chance to make an error by forgetting to update them. And they generate an error sometimes
from qtodotxt2.
Related Issues (20)
- [Design/Feature request] When using "Project" or "Context" sorting, show a header for each project
- Font size HOT 1
- add possibility to change the item order in the filter panel
- keep task selected when changing priority HOT 8
- changing priority don't work on linux HOT 3
- due date with time not displaying in Today category
- RTL text aligned to left
- Question: How can I change interface Icons?
- customize color and font size HOT 3
- install command missing in README
- Seg Fault when running HOT 2
- qtdeclarative5-models-plugin is not installable on Ubuntu 20.04 Focal Fossa HOT 3
- I am ready to help with translation into Russian
- Customise colours HOT 1
- Text not saved if window loses focus while editing (redux) HOT 1
- Can anyone explains code structure ? HOT 4
- Bug in recurring tasks: only accepting up to <10 units of time HOT 1
- leaking of test contents into personal todo.txt?
- Add Projects / Contexts to multiple tasks at once
- crash: IndexError: string index out of range
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtodotxt2.