X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fevents.c;h=ac9e2ab0f54c429b9b2f996443505305038ee41e;hp=90f6615a20f61ee0647a61f58f03b0b586d17791;hb=34df5c161045d8dddfd1c24d7fb1cfa29e0a9746;hpb=f11d2545f41637e871283f7624dccc8243d05138 diff --git a/src/events.c b/src/events.c index 90f6615a..ac9e2ab0 100644 --- a/src/events.c +++ b/src/events.c @@ -1543,7 +1543,16 @@ static void HandleDropFileEventExt(char *filename) return; } - ExtractZipFileIntoDirectory(filename, directory, tree_type); + char *top_dir = ExtractZipFileIntoDirectory(filename, directory, tree_type); + + if (top_dir != NULL) + { + if (tree_type == TREE_TYPE_LEVEL_DIR) + AddUserLevelSetToLevelInfo(top_dir); + else + AddUserArtworkSetToArtworkInfo(top_dir, tree_type); + } + } } static void HandleDropTextEventExt(char *text)