gparted r972 - in trunk: . src
- From: gedakc svn gnome org
- To: svn-commits-list gnome org
- Subject: gparted r972 - in trunk: . src
- Date: Wed, 19 Nov 2008 23:44:30 +0000 (UTC)
Author: gedakc
Date: Wed Nov 19 23:44:30 2008
New Revision: 972
URL: http://svn.gnome.org/viewvc/gparted?rev=972&view=rev
Log:
Prevent a copied partition from being pasted into an existing partition
Modified:
trunk/ChangeLog
trunk/src/Win_GParted.cc
Modified: trunk/src/Win_GParted.cc
==============================================================================
--- trunk/src/Win_GParted.cc (original)
+++ trunk/src/Win_GParted.cc Wed Nov 19 23:44:30 2008
@@ -896,7 +896,8 @@
if ( ! copied_partition .get_path() .empty() &&
copied_partition .get_length() <= selected_partition .get_length() &&
selected_partition .status == GParted::STAT_REAL &&
- copied_partition != selected_partition )
+ copied_partition != selected_partition &&
+ selected_partition .type == GParted::TYPE_UNALLOCATED )
allow_paste( true ) ;
//see if we can somehow check/repair this file system....
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]