3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/office/kitsas/qt-512.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
814 B
Diff
Raw Normal View History

diff --git i/kitsas/apuri/siirtoapuri.cpp w/kitsas/apuri/siirtoapuri.cpp
index 9a2c51f3..9565200f 100644
--- i/kitsas/apuri/siirtoapuri.cpp
+++ w/kitsas/apuri/siirtoapuri.cpp
@@ -25,6 +25,7 @@
#include "db/tositetyyppimodel.h"
#include "tiliote/tiliotekirjaaja.h"
+#include <QtAlgorithms>
#include <QDebug>
SiirtoApuri::SiirtoApuri(QWidget *parent, Tosite *tosite) :
@@ -361,8 +362,9 @@ void SiirtoApuri::laskunmaksu()
TositeVienti eka = lista.at(0).toMap();
tosite()->asetaPvm(eka.pvm());
tosite()->asetaOtsikko( eka.selite() );
- if( eka.kreditEuro() )
- lista.swapItemsAt(0,1);
+ if( eka.kreditEuro() ) {
+ qSwap(lista.begin()[0], lista.begin()[1]);
+ }
tosite()->viennit()->asetaViennit(lista);
reset();