4b3042def4
Fix object leaks in database code
...
Qt's database and query model requires that both the queries and the database
objects are out of scope before a database connection can safely be removed.
Solution: Properly encapsulate databases and queries in "{ }" and use a string
to cache the connection name for out-of-scope removal.
2020-08-25 17:34:46 +02:00
bb334cfd50
Use auto to avoid duplicating the type name
2019-06-01 16:04:48 +02:00
e3ec56aa43
Format code using clang-format
2019-05-30 19:46:37 +02:00
b77eaf6d9c
Library: reorder initialization of FolderModel
2019-04-01 11:25:16 +02:00
9c3720ceb9
Library: fix misleading indentation
2019-04-01 11:25:16 +02:00
fb97cfa1dc
Library: explicit {} on ambiguous 'if if else'
2019-04-01 11:25:16 +02:00
d5a11fb16b
Add .gitattributes rules for text and binary handling
2018-07-30 15:04:04 +02:00
1ccb40624c
Remove potential memleak in folder model code
2018-05-26 11:32:59 +02:00
52c76d5482
Create unique database connections per thread and remove them using the database connection name from the QSqlDatabase instance being used.
2018-04-24 20:53:24 +02:00
f149f314e0
Merge
2017-08-26 16:54:10 +02:00
f5fda9b530
Fixed db Fixed data base info retrieving in FolderModel.
2017-08-26 16:17:17 +02:00
d6898e9a4e
Fixed data base info retrieving through DBHelper, value(QString)
should never be used because it is really slow. All items sorting should be done at db level or using std::sort.
2017-08-26 16:16:11 +02:00