]> sigrok.org Git - pulseview.git/blobdiff - pv/prop/int.cpp
Added devices::File as a common base of file devices
[pulseview.git] / pv / prop / int.cpp
index ef962e5a7ca5ae09ef9846261ca0fce46fb885b1..55b7ab3e09fa8bd4f00cb37ff4886a5f795d7fb3 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <QSpinBox>
 
-#include "int.h"
+#include "int.hpp"
 
 using boost::optional;
 using std::max;
@@ -154,7 +154,7 @@ void Int::commit()
        else if (g_variant_type_equal(type, G_VARIANT_TYPE_INT32))
                new_value = g_variant_new_int32(spin_box_->value());
        else if (g_variant_type_equal(type, G_VARIANT_TYPE_UINT32))
-               new_value = g_variant_new_int32(spin_box_->value());
+               new_value = g_variant_new_uint32(spin_box_->value());
        else if (g_variant_type_equal(type, G_VARIANT_TYPE_INT64))
                new_value = g_variant_new_int64(spin_box_->value());
        else if (g_variant_type_equal(type, G_VARIANT_TYPE_UINT64))