Magellan Linux

Annotation of /trunk/aqemu/patches/aqemu-0.8.2-sigsev-properties.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1801 - (hide annotations) (download)
Fri Jun 8 18:46:03 2012 UTC (12 years ago) by niro
File size: 960 byte(s)
-added patches
1 niro 1801 --- a/Device_Manager_Widget.cpp 2011-09-13 21:45:58.883389571 +0200
2     +++ b/Device_Manager_Widget.cpp 2011-09-13 21:55:01.401866022 +0200
3     @@ -981,9 +981,10 @@
4     {
5     if( ui.Devices_List->currentItem()->data(512).toString() == "device" + QString::number(fx) )
6     {
7     - finded = true;
8     -
9     Storage_Devices.removeAt( fx );
10     + ui.Devices_List->takeItem( ui.Devices_List->currentRow() );
11     + finded = true;
12     + break;
13     }
14     }
15    
16     @@ -993,10 +994,24 @@
17     "Incorrect Device!" );
18     return;
19     }
20     + else
21     + {
22     + // Rename items
23     + for( int ix = 0, count = 0; ix < ui.Devices_List->count(); ++ix )
24     + {
25     + if( ui.Devices_List->item(ix)->data(512).toString().contains("device") )
26     + {
27     + ui.Devices_List->item(ix)->setData( 512, QString("device%1").arg(count) );
28     + ++count;
29     + }
30     + }
31     +
32     + emit Device_Changet();
33     + return;
34     + }
35     }
36    
37     ui.Devices_List->takeItem( ui.Devices_List->currentRow() );
38     -
39     emit Device_Changet();
40     }
41